function theme_pm_dashboard in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pm.theme.inc \theme_pm_dashboard()
- 7 pm.theme.inc \theme_pm_dashboard()
- 7.2 pm.theme.inc \theme_pm_dashboard()
Provides HTML for a Project Management dashboard.
1 theme call to theme_pm_dashboard()
- pm_page_front in includes/
pm.pages.inc - Page callback for 'pm' path.
File
- ./
pm.theme.inc, line 10 - Provides theme functions for Project Management modules.
Code
function theme_pm_dashboard($vars) {
$link_blocks = $vars['links'];
$content = '<div id="pmdashboard">';
if (!empty($link_blocks)) {
$content .= '<dl class="pmdashboard clear-block">';
foreach ($link_blocks as $link_block_array) {
$content .= '<div class="pmdashboard">';
if (!empty($link_block_array) and is_array($link_block_array)) {
foreach ($link_block_array as $link_array) {
if (!empty($link_array['theme'])) {
$content .= theme($link_array['theme'], array(
'link_blocks' => $link_array,
));
}
else {
$content .= theme('pm_dashboard_link', array(
'link_blocks' => $link_array,
));
}
}
}
$content .= '</div>';
}
$content .= '</dl>';
}
else {
$content .= t('No dashboard links available');
}
$content .= '</div>';
return $content;
}