You are here

function domain_content_page in Domain Access 7.2

Same name and namespace in other branches
  1. 5 domain_content/domain_content.module \domain_content_page()
  2. 6.2 domain_content/domain_content.admin.inc \domain_content_page()
  3. 7.3 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.

File

domain_content/domain_content.admin.inc, line 19
Administration pages for Domain Content.

Code

function domain_content_page() {
  $build = array();
  $content = array();
  $content = system_admin_menu_block(menu_get_item('admin/domain/content'));

  // Print the list of options.
  if (!empty($content)) {
    $output = theme('admin_block_content', array(
      'content' => $content,
    ));
  }
  else {
    $output = t('There are no valid domains configured.');
  }
  $build['content'] = array(
    '#markup' => $output,
  );
  return $build;
}