Fix for bones_menu()

  1. /**
  2.  * Implementation of hook_menu().
  3.  */
  4. function bones_menu() {
  5.  
  6.   $items['admin/build/bones'] = array(
  7.     'title' => 'Bones',
  8.     'description' => 'Build out nodes & menu items by importing YAML',
  9.     'page callback' => 'drupal_get_form',
  10.     'page arguments' => array('bones_form'),
  11.     'access callback' => 'bones_menu_access',
  12.     'type' => MENU_NORMAL_ITEM,
  13.   );
  14.  
  15.   $items['admin/build/bones/import'] = array(
  16.     'title' => 'Import',
  17.     'description' => 'Build out nodes & menu items by importing YAML',
  18.     'page callback' => 'drupal_get_form',
  19.     'page arguments' => array('bones_form'),
  20.     'access callback' => 'bones_menu_access',
  21.     'type' => MENU_DEFAULT_LOCAL_TASK    
  22.   );
  23.  
  24.   $items['admin/build/bones/past'] = array(
  25.     'title' => 'Past Imports',
  26.     'description' => 'View and delete previous imported nodes.',
  27.     'page callback' => 'drupal_get_form',
  28.     'access callback' => 'bones_menu_access',  
  29.     'type' => MENU_LOCAL_TASK
  30.   );
  31.  
  32.   $items['admin/build/bones/details_js/%'] = array(
  33.     'page callback' => 'bones_batch_details_js',
  34.     'page arguments' => array(4),
  35.     'access callback' => 'bones_menu_access',
  36.     'type' => MENU_CALLBACK
  37.   );
  38.  
  39.  
  40.   return $items;
  41. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.