function ds_general_page in Display Suite 6.2
Same name and namespace in other branches
- 6.3 includes/ds.admin.inc \ds_general_page()
- 6 includes/ds.admin.inc \ds_general_page()
General page.
1 string reference to 'ds_general_page'
- _ds_ui_menu in includes/
ds.registry.inc - Return menu items and import default settings.
File
- includes/
ds.admin.inc, line 11 - General file for administrative functions.
Code
function ds_general_page() {
$i = 0;
$output = '';
$items = array();
// Child pages.
$item = menu_get_item(DS_PATH_BASE);
if ($content = system_admin_menu_block($item)) {
foreach ($content as $item) {
$link = l($item['title'], $item['link_path']);
if (!empty($item['description'])) {
$link .= ' : ' . $item['description'];
}
$items[$i] = $link;
$i++;
}
$childs = theme('item_list', $items);
}
else {
$childs = t('You do not have any administrative items.');
}
$output = t('Click on one of the following items to get started.');
$output .= $childs;
return $output;
}