function theme_pm_dashboard_block in Drupal PM (Project Management) 7
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.2 pm.theme.inc \theme_pm_dashboard_block()
Provides HTML for the Project Management dashboard blocks.
File
- ./
pm.theme.inc, line 92 - 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 $block_id => $link_block_array) {
if (!empty($link_block_array)) {
foreach ($link_block_array as $key => $link_array) {
$content .= '<div class="pmdashboard-icon">';
if (!empty($link_array['theme'])) {
$content .= theme($link_array['theme'], $link_array);
}
else {
$content .= theme('pm_dashboard_link', $link_array);
}
$content .= '</div>';
}
}
}
}
else {
// no links, hide block
return '';
}
$content .= '</div>';
return $content;
}