Projet

Général

Profil

Paste
Télécharger (539 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ctools / includes / wizard.theme.inc @ 3aa14731

1
<?php
2

    
3
/**
4
 * @file
5
 * Themable for the wizard tool.
6
 */
7

    
8
function ctools_wizard_theme(&$theme) {
9
  $theme['ctools_wizard_trail'] = array(
10
    'variables' => array('trail' => NULL, 'form_info' => NULL, 'divider' => ' » '),
11
    'file' => 'includes/wizard.theme.inc',
12
  );
13
}
14

    
15
/**
16
 * Themable display of the 'breadcrumb' trail to show the order of the forms.
17
 */
18
function theme_ctools_wizard_trail($vars) {
19
  if (!empty($vars['trail'])) {
20
    return '<div class="wizard-trail">' . implode($vars['divider'], $vars['trail']) . '</div>';
21
  }
22
}