You are here

function gathercontent_menu in GatherContent 7

Same name and namespace in other branches
  1. 7.3 gathercontent.module \gathercontent_menu()
  2. 7.2 gathercontent.module \gathercontent_menu()

Implements hook_menu().

File

./gathercontent.module, line 29
Imports pages from GatherContent (http://gathercontent.com/) into Drupal as nodes.

Code

function gathercontent_menu() {
  $items = array(
    'admin/config/content/gathercontent' => array(
      'title' => 'GatherContent',
      'description' => 'Import pages from GatherContent.',
      'page callback' => 'system_admin_menu_block_page',
      'access arguments' => array(
        'administer gathercontent',
      ),
      'file' => 'system.admin.inc',
      'file path' => drupal_get_path('module', 'system'),
    ),
    'admin/config/content/gathercontent/settings' => array(
      'title' => 'Settings',
      'description' => 'Administer GatherContent settings.',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'gathercontent_api_admin',
      ),
      'access arguments' => array(
        'administer gathercontent',
      ),
      'file' => 'gathercontent_admin.inc',
      'type' => MENU_NORMAL_ITEM,
    ),
    'admin/config/content/gathercontent/%gathercontent_ctools_js/import' => array(
      'title' => 'Import pages',
      'description' => 'Use the wizard to import pages from GatherContent.',
      'page callback' => 'gathercontent_import',
      'page arguments' => array(
        4,
      ),
      'access callback' => TRUE,
      'access arguments' => array(
        'administer gathercontent',
      ),
      'type' => MENU_NORMAL_ITEM,
    ),
  );
  return $items;
}