function emfield_menu in Embedded Media Field 6.2
Same name and namespace in other branches
- 5 emfield.module \emfield_menu()
- 6.3 emfield.module \emfield_menu()
- 6 emfield.module \emfield_menu()
Implementation of hook_menu().
File
- ./
emfield.module, line 15 - Embedded Media Field is a CCK-based framework for 3rd party media files.
Code
function emfield_menu() {
$items['admin/content/emfield'] = array(
'file' => 'emfield.admin.inc',
'title' => 'Embedded Media Field configuration',
'description' => 'Configure Embedded Media Field: Allow content types to use various 3rd party providers, enter API keys, etc.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'emfield_settings',
),
'access arguments' => array(
'administer site configuration',
),
);
$items['admin/content/emfield/media'] = array(
'file' => 'emfield.admin.inc',
'title' => 'General',
'description' => 'Configure Embedded Media Field: Allow content types to use various 3rd party providers, enter API keys, etc.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'emfield_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -3,
);
foreach (module_implements('emfield_info', TRUE) as $module) {
$emfield_info = module_invoke($module, 'emfield_info');
$items['admin/content/emfield/' . $module] = array(
'title' => $emfield_info['#settings_title'],
'description' => $emfield_info['#settings_description'],
'file' => 'emfield.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'emfield_module_settings',
3,
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
);
}
$items['admin/content/emfield/obsolete'] = array(
'file' => 'emfield.admin.inc',
'title' => 'Disable obsolete provider',
'page callback' => 'emfield_disable_obsolete_provider',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
);
if (module_exists('job_queue')) {
$items['admin/content/emfield/reload'] = array(
'file' => 'emfield.admin.inc',
'title' => 'Reload data',
'description' => 'Reload emfield fields in bulk',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'emfield_settings_jobqueue',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 3,
);
}
return $items;
}