function matrix_menu in Matrix field 6.2
Same name and namespace in other branches
- 7.2 matrix.module \matrix_menu()
Implementation of hook_menu().
File
- ./
matrix.module, line 11 - Defines simple matrix field types.
Code
function matrix_menu() {
$items['matrix/export/%/%'] = array(
//nid, field_name
'title' => 'Export callback for matrix',
'page callback' => 'matrix_export',
'page arguments' => array(
2,
3,
),
'access arguments' => array(
'export matrix',
),
'type' => MENU_CALLBACK,
);
$items['matrix/reorder'] = array(
'title' => 'Menu callback for saving the reorder of elements events',
'page callback' => 'matrix_settings_reorder_save',
'access arguments' => array(
'export matrix',
),
'file' => 'admin.inc',
'type' => MENU_CALLBACK,
);
$items['matrix/throbber'] = array(
'title' => 'Menu callback for the settings form',
'page callback' => 'matrix_settings_throbber_callback',
'access arguments' => array(
'export matrix',
),
'file' => 'admin.inc',
'type' => MENU_CALLBACK,
);
$items['matrix/throbber/save'] = array(
'title' => 'Menu callback saving a new element',
'page callback' => 'matrix_settings_throbber_save',
'access arguments' => array(
'export matrix',
),
'file' => 'admin.inc',
'type' => MENU_CALLBACK,
);
$items['matrix/throbber/delete'] = array(
'title' => 'Menu callback deleting an element',
'page callback' => 'matrix_settings_throbber_delete',
'access arguments' => array(
'export matrix',
),
'file' => 'admin.inc',
'type' => MENU_CALLBACK,
);
$items['matrix/ahah'] = array(
'title' => 'Add ability to add extra rows/colums with AHAH',
'page callback' => 'matrix_ahah',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items['matrix/example'] = array(
'title' => 'Example use of matrix as a form element',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'matrix_example',
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
return $items;
}