domain_content_page()
domain_content/domain_content.module, line 109
The domain content page of menu callbacks.
A link group for each domain the user can access.
function domain_content_page() {
// Get the menu items and iterate through the children.
$menu = menu_get_item(NULL, 'admin/domain/content');
foreach ($menu['children'] as $mid) {
$item = menu_get_item($mid);
if ($item['access']) {
$items[] = l($item['title'], $item['path']) .'<br />'. $item['description'];
}
}
// Print the list of options.
if (!empty($items)) {
$output = theme('item_list', $items);
}
// There was an error or invalid request.
else {
$output = t('There are no valid domains configured.');
}
return $output;
}