Skip to content

Instantly share code, notes, and snippets.

@allgood2386
Created October 23, 2013 16:50
Show Gist options
  • Save allgood2386/7122245 to your computer and use it in GitHub Desktop.
Save allgood2386/7122245 to your computer and use it in GitHub Desktop.
function sponsor_school_page_menu() {
$items['add/teacher/%'] = array(
'title' => t('Add a Teacher'),
'page callback' => 'drupal_get_form',
'page arguments' => array('sponsor_school_page_add_teacher_form', array(1)),
'access callback' => TRUE,
);
$items['add/point-of-contact/%'] = array(
'title' => t('Add a Point of Contact'),
'page callback' => 'sponsor_school_page_add_poc_form',
'page arguments' => array(1),
'access callback' => TRUE,
);
return $items;
}
@aellison
Copy link

function sponsor_school_page_menu() {
$items['add/teacher/%'] = array(
'title' => t('Add a Teacher'),
'page callback' => 'drupal_get_form',
'page arguments' => array('sponsor_school_page_add_teacher_form', arg(2)),
'access callback' => TRUE,
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment