function theme_deploy_ui_overview_plan_content in Deploy - Content Staging 7.3
Same name and namespace in other branches
- 7.2 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_plan::view_page in modules/
deploy_ui/ plugins/ export_ui/ deploy_ui_plan.class.php - Renders the view deployment plan page.
File
- modules/
deploy_ui/ deploy_ui.pages.inc, line 10 - Deploy UI page functions.
Code
function theme_deploy_ui_overview_plan_content($variables) {
$info = $variables['info'];
if (empty($info)) {
return t('No content in this plan.');
}
$header = [
t('Title'),
t('Type'),
];
$table = [
'header' => $header,
'rows' => [],
];
foreach ($info as $values) {
$table['rows'][] = [
$values['title'],
$values['type'],
];
}
return theme('table', $table);
}