You are here

function emfield_menu in Embedded Media Field 6

Same name and namespace in other branches
  1. 5 emfield.module \emfield_menu()
  2. 6.3 emfield.module \emfield_menu()
  3. 6.2 emfield.module \emfield_menu()

Implementation of hook_menu().

File

./emfield.module, line 11
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' => 'Media settings',
    '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,
  );
  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,
    );
  }
  return $items;
}