You are here

function rules_forms_menu in Rules 6

Implementation of hook_menu().

File

rules_forms/rules_forms.module, line 25
Rules forms module.

Code

function rules_forms_menu() {
  $items = array();
  $items[RULES_ADMIN_FORMS_PATH] = array(
    'title' => 'Form events',
    'description' => 'Configure Rules forms events.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'rules_forms_admin_events',
    ),
    'access arguments' => array(
      'administer rules',
    ),
    'type' => MENU_NORMAL_ITEM,
    'weight' => 6,
    'file' => 'rules_forms.admin.inc',
  );
  $items[RULES_ADMIN_FORMS_PATH . '/%/activate'] = array(
    'title' => 'Activate events for a form',
    'type' => MENU_CALLBACK,
    'page callback' => 'rules_forms_activate',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'administer rules',
    ),
    'file' => 'rules_forms.admin.inc',
  );
  return $items;
}