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