function theme_pm_dashboard_block in Drupal PM (Project Management) 7.2
Same name and namespace in other branches
- 8 pm.theme.inc \theme_pm_dashboard_block()
- 7.3 pm.theme.inc \theme_pm_dashboard_block()
- 7 pm.theme.inc \theme_pm_dashboard_block()
Provides HTML for the Project Management dashboard blocks.
File
- ./
pm.theme.inc, line 41 - Provides theme functions for Project Management modules.
Code
function theme_pm_dashboard_block($link_blocks) {
$content = '<div id="pmdashboard-block">';
if (!empty($link_blocks)) {
foreach ($link_blocks as $link_block_array) {
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'], $link_array);
}
else {
$content .= theme('pm_dashboard_link', $link_array);
}
}
}
}
}
else {
// No links, hide block.
return '';
}
$content .= '</div>';
return $content;
}