You are here

function _emfield_deprecated_menu in Embedded Media Field 6.3

Implementation of hook_menu().

1 call to _emfield_deprecated_menu()
emfield_menu in ./emfield.module
Implementation of hook_menu().

File

deprecated/emfield-deprecated.inc, line 15
Functionality to be deprecated from earlier versions of Embedded Media Field.

Code

function _emfield_deprecated_menu() {
  $items['admin/content/emfield'] = array(
    'file' => 'deprecated/emfield-deprecated.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' => 'deprecated/emfield-deprecated.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' => 'deprecated/emfield-deprecated.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' => 'deprecated/emfield-deprecated.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' => 'deprecated/emfield-deprecated.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;
}