On my custom module, I defined the following hook_menu() function.
function motel_events_menu() {
$items['ajax/pastevents/%'] = array(
'title' => 'Get Past Events',
'page callback' => '_motel_events_get_pastevents(%)',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
return $items;
}
In this function, how can I retrieve the % argument that is passed in 'ajax/pastevents/%' so I can send it to my _motel_events_get_pastevents() function?