Mercurial > hg > rr-repo
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sites/all/modules/ctools/includes/wizard.theme.inc Wed Aug 21 18:51:11 2013 +0100 @@ -0,0 +1,25 @@ +<?php + +/** + * @file + * Themable for the wizard tool. + */ + +function ctools_wizard_theme(&$theme) { + $theme['ctools_wizard_trail'] = array( + 'variables' => array('trail' => NULL), + 'file' => 'includes/wizard.theme.inc', + ); +} + +/** + * Themable display of the 'breadcrumb' trail to show the order of the + * forms. + */ +function theme_ctools_wizard_trail($vars) { + $trail = $vars['trail']; + if (!empty($trail)) { + return '<div class="wizard-trail">' . implode(' ยป ', $trail) . '</div>'; + } +} +