function sf_import_menu in Salesforce Suite 6.2
Same name and namespace in other branches
- 7.2 sf_import/sf_import.module \sf_import_menu()
Implementation of hook_menu().
File
- sf_import/
sf_import.module, line 8
Code
function sf_import_menu() {
$items[SALESFORCE_PATH_ADMIN_IMPORT] = array(
'title' => 'Import',
'description' => 'Configure settings for regular imports of data.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sf_import_settings_form',
),
'access arguments' => array(
'administer salesforce',
),
'file' => 'sf_import.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items[SALESFORCE_PATH_ADMIN_IMPORT . '/create'] = array(
'title' => 'Batch Import',
'description' => 'Create a one-time batch import of Salesforce data',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sf_import_create',
),
'access arguments' => array(
'administer salesforce',
),
'file' => 'sf_import.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items[SALESFORCE_PATH_ADMIN_IMPORT . '/manual'] = array(
'title' => 'Manual Import',
'description' => 'Import Salesforce records manually.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sf_import_manual',
),
'access arguments' => array(
'administer salesforce',
),
'file' => 'sf_import.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items[SALESFORCE_PATH_ADMIN_IMPORT . '/overview'] = array(
'title' => 'Import Settings',
'access arguments' => array(
'administer salesforce',
),
'file' => 'sf_import.admin.inc',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
return $items;
}