You are here

function ccl_actions_menu in Custom Contextual Links 7

Same name and namespace in other branches
  1. 8 ccl_actions/ccl_actions.module \ccl_actions_menu()

Implements hook_menu().

File

ccl_actions/ccl_actions.module, line 10
Implementation of core actions for CCL.

Code

function ccl_actions_menu() {
  $items['admin/config/user-interface/ccl/action/add'] = array(
    'title' => 'Add new node action link',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ccl_actions_form',
    ),
    'access arguments' => array(
      'use ccl',
    ),
    'type' => MENU_LOCAL_ACTION,
    'weight' => 10,
  );
  $items['admin/config/user-interface/ccl/action/%/edit'] = array(
    'title' => 'Edit custom link',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ccl_actions_form',
      5,
    ),
    'access arguments' => array(
      'use ccl',
    ),
  );
  $items['admin/config/user-interface/ccl/action-trigger/%node/%/%'] = array(
    'title' => 'CCL Action Trigger',
    'page callback' => 'ccl_actions_trigger',
    'page arguments' => array(
      5,
      6,
      7,
    ),
    'access arguments' => array(
      'access contextual links',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}