You are here

function clients_drupal_menu in Web Service Clients 6

Same name and namespace in other branches
  1. 6.2 connections/clients_drupal/clients_drupal.module \clients_drupal_menu()
  2. 7.3 connections/clients_drupal/clients_drupal.module \clients_drupal_menu()
  3. 7 backends/clients_drupal/clients_drupal.module \clients_drupal_menu()
  4. 7.2 connections/clients_drupal/clients_drupal.module \clients_drupal_menu()

Implementation of hook_menu()

File

backends/clients_drupal/clients_drupal.module, line 68
Drupal Services plugin for Clients module @author Django Beatty - adub

Code

function clients_drupal_menu() {
  $items = array();
  $items['admin/settings/clients/connections/drupal'] = array(
    'title' => 'Add Drupal connection',
    'description' => 'Add Drupal connection',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'clients_drupal_config',
      'add',
    ),
    'access arguments' => array(
      'clients_drupal admin',
    ),
    'weight' => 10,
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/settings/clients/drupal/admin'] = array(
    'title' => 'Configure Drupal',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'clients_drupal_admin',
    ),
    'access arguments' => array(
      'clients_drupal admin',
    ),
    'weight' => 10,
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/settings/clients/connections/drupal/%/edit'] = array(
    'title' => 'Edit Drupal connection',
    'description' => 'Edit Drupal connection',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'clients_drupal_config',
      6,
      5,
    ),
    'access arguments' => array(
      'clients_drupal admin',
    ),
    'weight' => 10,
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}