I can't get the wildcard from a hook_menu to pass it to a callback function
Here is what I have:
function spin_menu() {
$items = array();
$items['spin/login/%'] = array(
'title' => 'SPIN',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
'page callback' => 'spin_check_access'
);
return $items;
}
function spin_check_access($type = '') {
echo $type; // type is never the %
}
Is it correct? I need the $type to be replaced with the wildcard's value.