You are here

function civicrm_entity_discount_field_menu in CiviCRM Entity 7.2

Implements hook_menu(). code example taken from https://www.drupal.org/project/multiple_fields_remove_button module

File

modules/civicrm_entity_discount/civicrm_entity_discount_field.module, line 14
Provide CiviCRM Entity Discount Field Type. Provides a widget for selecting custom discount options

Code

function civicrm_entity_discount_field_menu() {
  $items = array();
  $items['civicrm_entity_discount_field_multiple_fields_remove_button/ajax'] = array(
    'title' => 'Remove item callback',
    'page callback' => 'civicrm_entity_discount_field_multiple_fields_remove_button_js',
    'delivery callback' => 'ajax_deliver',
    'access callback' => TRUE,
    'theme callback' => 'ajax_base_page_theme',
    'type' => MENU_CALLBACK,
  );
  return $items;
}