function theme_domain_nav_menus in Domain Access 7.2
Same name and namespace in other branches
- 5 domain_nav/domain_nav.module \theme_domain_nav_menus()
- 6.2 domain_nav/domain_nav.module \theme_domain_nav_menus()
- 7.3 domain_nav/domain_nav.module \theme_domain_nav_menus()
Themes the domain list as a menu-style group of tabs.
Parameters
$variables: An array of information about each domain.
File
- domain_nav/
domain_nav.module, line 275 - Navigation block and menu options for Domain Access
Code
function theme_domain_nav_menus($variables) {
$options = $variables['options'];
foreach ($options as $key => $value) {
isset($value['active']) ? $active = 'active' : ($active = '');
$items[] = array(
'data' => l($value['sitename'], $value['path']),
'attribute' => array(
'class' => "domain-id-" . $value['domain_id'] . ' ' . $active,
),
);
}
return theme('item_list', array(
'items' => $items,
'attributes' => array(
'class' => 'tabs primary',
),
));
}