You are here

function redhen_landing_page in RedHen CRM 7

Wrapper for system_admin_menu_block_page().

1 string reference to 'redhen_landing_page'
redhen_menu in ./redhen.module
Implements hook_menu().

File

includes/redhen.admin.inc, line 11
RedHen page callbacks.

Code

function redhen_landing_page() {
  $items = array(
    'contact' => array(
      'module' => 'redhen_contact',
      'path' => 'redhen/contact',
      'title' => t('Contacts'),
      'description' => t('View, manage, and search contacts.'),
      'permission' => 'access redhen contacts',
    ),
    'org' => array(
      'module' => 'redhen_org',
      'path' => 'redhen/org',
      'title' => t('Organizations'),
      'description' => t('View, manage, and search organizations.'),
      'permission' => 'access redhen orgs',
    ),
    'membership' => array(
      'module' => 'redhen_membership',
      'path' => 'redhen/memberships',
      'title' => t('Memberships'),
      'description' => t('View, manage, and search memberships.'),
      'permission' => 'list redhen memberships',
    ),
    'activity' => array(
      'module' => 'redhen_activity',
      'path' => 'redhen/activity',
      'title' => t('Activity'),
      'description' => t('RedHen activity stream.'),
      'permission' => 'access redhen activity',
    ),
    'structure' => array(
      'path' => 'admin/structure/redhen',
      'title' => t('Structure'),
      'description' => t('Define bundles and manage fields for RedHen entities.'),
      'permission' => 'administer redhen',
    ),
    'settings' => array(
      'path' => 'admin/config/redhen',
      'title' => t('Settings'),
      'description' => t('RedHen configuration and settings.'),
      'permission' => 'administer redhen',
    ),
  );
  foreach ($items as $key => $item) {
    if (isset($item['module']) && !module_exists($item['module']) || !user_access($item['permission'])) {
      unset($items[$key]);
    }
  }
  return theme('redhen_home', array(
    'items' => $items,
  ));
}