You are here

function pmpapi_menu in Public Media Platform API Integration 7

Implements hook_menu().

File

./pmpapi.module, line 23
Creates basic calls to the PMP API.

Code

function pmpapi_menu() {
  $items['admin/config/services/pmp'] = array(
    'title' => 'Public Media Platform (PMP) API',
    'description' => 'Control your PMP API settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'pmpapi_config_form',
    ),
    'access arguments' => array(
      'administer PMP API',
    ),
    'file' => 'pmpapi.admin.inc',
  );
  $items['admin/config/services/pmp/api_config'] = array(
    'title' => 'API Settings',
    'weight' => -20,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/services/pmp/api_test'] = array(
    'title' => 'Test PMP API',
    'page callback' => 'pmpapi_test_api',
    'access arguments' => array(
      'administer PMP API',
    ),
    'file' => 'pmpapi.pages.inc',
  );
  return $items;
}