function gathercontent_menu in GatherContent 7.2
Same name and namespace in other branches
- 7.3 gathercontent.module \gathercontent_menu()
- 7 gathercontent.module \gathercontent_menu()
Implements hook_menu().
File
- ./
gathercontent.module, line 11 - Imports pages from GatherContent (http://gathercontent.com/) into Drupal as nodes.
Code
function gathercontent_menu() {
$items = array();
$path = drupal_get_path('module', 'gathercontent') . '/includes';
$items['admin/config/content/gathercontent'] = array(
'title' => 'GatherContent',
'description' => 'Import GatherContent pages to your Drupal CMS',
'page callback' => 'drupal_get_form',
'access arguments' => array(
'administer gathercontent',
),
'file' => 'project.inc',
'file path' => $path,
'page arguments' => array(
'gathercontent_project_form',
),
);
$items['admin/config/content/gathercontent/login'] = array(
'title' => 'GatherContent',
'page callback' => 'drupal_get_form',
'access arguments' => array(
'administer gathercontent',
),
'file' => 'login.inc',
'file path' => $path,
'type' => MENU_CALLBACK,
'page arguments' => array(
'gathercontent_login_form',
),
);
$items['admin/config/content/gathercontent/pages'] = array(
'title' => 'GatherContent',
'page callback' => 'drupal_get_form',
'access arguments' => array(
'administer gathercontent',
),
'file' => 'pages.inc',
'file path' => $path,
'type' => MENU_CALLBACK,
'page arguments' => array(
'gathercontent_pages_form',
),
);
$items['admin/config/content/gathercontent/pages_import'] = array(
'title' => 'GatherContent',
'page callback' => 'drupal_get_form',
'access arguments' => array(
'administer gathercontent',
),
'file' => 'pages_import.inc',
'file path' => $path,
'type' => MENU_CALLBACK,
'page arguments' => array(
'gathercontent_pages_import_form',
),
);
$items['admin/config/content/gathercontent/media'] = array(
'title' => 'GatherContent',
'page callback' => 'drupal_get_form',
'access arguments' => array(
'administer gathercontent',
),
'file' => 'media.inc',
'file path' => $path,
'type' => MENU_CALLBACK,
'page arguments' => array(
'gathercontent_media_form',
),
);
$items['admin/config/content/gathercontent/finished'] = array(
'title' => 'GatherContent',
'page callback' => 'drupal_get_form',
'access arguments' => array(
'administer gathercontent',
),
'file' => 'finished.inc',
'file path' => $path,
'type' => MENU_CALLBACK,
'page arguments' => array(
'gathercontent_finished_form',
),
);
$items['admin/config/content/gathercontent/set_project_id/%'] = array(
'page callback' => 'gathercontent_set_project_id',
'access arguments' => array(
'administer gathercontent',
),
'file' => 'project.inc',
'file path' => $path,
'type' => MENU_CALLBACK,
'page arguments' => array(
5,
),
);
$items['admin/config/content/gathercontent/download_media'] = array(
'page callback' => 'gathercontent_ajax_media_download',
'access arguments' => array(
'administer gathercontent',
),
'file' => 'media.inc',
'file path' => $path,
'type' => MENU_CALLBACK,
);
$items['admin/config/content/gathercontent/import_page'] = array(
'page callback' => 'gathercontent_import_page',
'access arguments' => array(
'administer gathercontent',
),
'file' => 'pages_import.inc',
'file path' => $path,
'type' => MENU_CALLBACK,
);
return $items;
}