function theme_deploy_ui_overview_plan_content in Deploy - Content Staging 7.2
Same name and namespace in other branches
- 7.3 modules/deploy_ui/deploy_ui.pages.inc \theme_deploy_ui_overview_plan_content()
Theme callback for a plan's content.
1 theme call to theme_deploy_ui_overview_plan_content()
- deploy_ui_overview_page in modules/
deploy_ui/ deploy_ui.pages.inc - Page callback for the overview page.
File
- modules/
deploy_ui/ deploy_ui.pages.inc, line 75 - Deploy UI page functions.
Code
function theme_deploy_ui_overview_plan_content($variables) {
$info = $variables['info'];
$header = array(
t('Title'),
t('Type'),
);
$rows = array();
foreach ($info as $values) {
$rows[] = array(
$values['title'],
$values['type'],
);
}
if (empty($rows)) {
$rows = array(
array(
array(
'colspan' => 2,
'data' => t('Currently no content in this plan.'),
),
),
);
}
return theme('table', array(
'header' => $header,
'rows' => $rows,
));
}