You are here

function scald_dailymotion_menu in Scald: Media Management made easy 6

Implements hook_menu.

File

scald_dailymotion/scald_dailymotion.module, line 89
Defines a DailyMotion provider for Scald.

Code

function scald_dailymotion_menu() {
  $items = array();
  $items['admin/settings/scald_dailymotion'] = array(
    'title' => 'DailyMotion imports',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'scald_dailymotion_imports_form',
    ),
    'access arguments' => array(
      'administer dailymotion imports',
    ),
    'description' => 'Configure the videos that should be automatically imported from DailyMotion',
    'file' => 'scald_dailymotion.admin.inc',
  );
  $items['dailymotion/search'] = array(
    'title' => 'DailyMotion Video search',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'scald_dailymotion_search_form',
      2,
    ),
    'access arguments' => array(
      'import dailymotion videos',
    ),
    'description' => 'Search for new videos to import into this site',
    'file' => 'scald_dailymotion.pages.inc',
  );
  return $items;
}