You are here

function domain_content_page in Domain Access 5

Same name and namespace in other branches
  1. 6.2 domain_content/domain_content.admin.inc \domain_content_page()
  2. 7.3 domain_content/domain_content.admin.inc \domain_content_page()
  3. 7.2 domain_content/domain_content.admin.inc \domain_content_page()

The domain content page of menu callbacks.

Return value

A link group for each domain the user can access.

1 string reference to 'domain_content_page'
domain_content_menu in domain_content/domain_content.module
Implement hook_menu()

File

domain_content/domain_content.module, line 113
Editorial overview module.

Code

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);
  }
  else {
    $output = t('There are no valid domains configured.');
  }
  return $output;
}