wizard.theme.inc 539 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @file
  4. * Themable for the wizard tool.
  5. */
  6. function ctools_wizard_theme(&$theme) {
  7. $theme['ctools_wizard_trail'] = array(
  8. 'variables' => array('trail' => NULL, 'form_info' => NULL, 'divider' => ' » '),
  9. 'file' => 'includes/wizard.theme.inc',
  10. );
  11. }
  12. /**
  13. * Themable display of the 'breadcrumb' trail to show the order of the forms.
  14. */
  15. function theme_ctools_wizard_trail($vars) {
  16. if (!empty($vars['trail'])) {
  17. return '<div class="wizard-trail">' . implode($vars['divider'], $vars['trail']) . '</div>';
  18. }
  19. }