Skip to content

Instantly share code, notes, and snippets.

@labboy0276
Created December 11, 2014 21:12
Show Gist options
  • Save labboy0276/ff86d96eb3e44d6f9444 to your computer and use it in GitHub Desktop.
Save labboy0276/ff86d96eb3e44d6f9444 to your computer and use it in GitHub Desktop.
alec
/**
* Implements hook_menu().
*/
function cvt_termination_menu() {
$items = array();
$items['terminate/%userid/%'] = array(
'type' => MENU_LOCAL_TASK,
'page callback' => 'node_add',
'page arguments' => array('enrollee_termination', 1, 2),
'access arguments' => TRUE,
'access callback' => 'node_access',
'access arguments' => array('create', 'enrollee_termination'),
'file' => 'node.pages.inc',
'file path' => drupal_get_path('module', 'node')
);
return $items;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment