function theme_homebox_admin_new_page in Homebox 7.2
Same name and namespace in other branches
- 6.3 homebox.admin.inc \theme_homebox_admin_new_page()
- 6 homebox.admin.inc \theme_homebox_admin_new_page()
- 6.2 homebox.admin.inc \theme_homebox_admin_new_page()
- 7.3 homebox.admin.inc \theme_homebox_admin_new_page()
Theme the new-page form.
File
- ./
homebox.admin.inc, line 155 - Homebox admin file, takes care admin interface for homebox
Code
function theme_homebox_admin_new_page($variables) {
$form = $variables['form'];
$pages = homebox_pages();
$output = drupal_render_children($form);
$header = array(
t('Name'),
array(
'data' => t('Operations'),
'colspan' => 6,
),
);
if (is_array($pages) && !empty($pages)) {
foreach ($pages as $page) {
$link = l($page->settings['title'], $page->settings['path']);
$edit = l(t('Edit'), 'admin/structure/homebox/edit/' . $page->name);
$layout = l(t('Layout'), 'admin/structure/homebox/layout/' . $page->name);
$settings = l(t('Settings'), 'admin/structure/homebox/settings/' . $page->name);
$flush = l(t('Flush'), 'admin/structure/homebox/flush/' . $page->name);
$export = l(t('Export'), 'admin/structure/homebox/export/' . $page->name);
$clone = l(t('Clone'), 'admin/structure/homebox/clone/' . $page->name);
$rows[] = array(
$link,
$edit,
$layout,
$settings,
$flush,
$export,
$clone,
);
}
$output .= theme('table', array(
'header' => $header,
'rows' => $rows,
));
}
return $output;
}