You are here

function views_bulk_operations_menu in Views Bulk Operations (VBO) 6

Same name and namespace in other branches
  1. 5 views_bulk_operations.module \views_bulk_operations_menu()

Implementation of hook_menu().

File

./views_bulk_operations.module, line 1113
Allows operations to be performed on items selected in a view.

Code

function views_bulk_operations_menu() {
  $items['views-bulk-operations/js/action'] = array(
    'title' => 'VBO action form',
    'description' => 'AHAH callback to display action form on VBO action page.',
    'page callback' => 'views_bulk_operations_form_ahah',
    'page arguments' => array(
      'views_bulk_operations_action_form_operation',
    ),
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['views-bulk-operations/js/select'] = array(
    'title' => 'VBO select handler',
    'description' => 'AJAX callback to update selection.',
    'page callback' => 'views_bulk_operations_select',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}