Mercurial > hg > rr-repo
comparison sites/all/modules/ctools/includes/wizard.theme.inc @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ff03f76ab3fe |
---|---|
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), | |
11 'file' => 'includes/wizard.theme.inc', | |
12 ); | |
13 } | |
14 | |
15 /** | |
16 * Themable display of the 'breadcrumb' trail to show the order of the | |
17 * forms. | |
18 */ | |
19 function theme_ctools_wizard_trail($vars) { | |
20 $trail = $vars['trail']; | |
21 if (!empty($trail)) { | |
22 return '<div class="wizard-trail">' . implode(' ยป ', $trail) . '</div>'; | |
23 } | |
24 } | |
25 |