You are here

function pmpapi_push_menu in Public Media Platform API Integration 7

Implements hook_menu().

File

pmpapi_push/pmpapi_push.module, line 23
Maps drupal entities to MPM profiles, and pushes them to the PMP API.

Code

function pmpapi_push_menu() {
  $items = array();
  $items['admin/config/services/pmp/push'] = array(
    'title' => 'Push settings',
    'description' => 'Select which entities (and mapped fields) to push to PMP.',
    'access arguments' => array(
      'administer PMP push',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'pmpapi_push_admin_config',
    ),
    'file' => 'pmpapi_push.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}