In my template file I have 2 links like
if(mytest){
print l(t('Action 1'), 'my_first_link/'.$id);
}else{
print l(t('Action 2'), 'my_second_link/'.$id);
}
In my custom module I have
function myModule_menu() {
$items = array();
$items['my_first_link'] = array(
'title' => 'First function',
'page callback' => array('myModule_first_function'),
'page arguments' => array(1,),
);
$items['disableproject'] = array(
'title' => 'Second function',
'page callback' => array('myModule_second_function'),
'page arguments' => array(1,),
);
return $items;
}
function myModule_first_function($url_argument){
print('url_argument = '.$url_argument);
}
function myModule_second_function($url_argument){
print('url_argument = '.$url_argument);
}
My first link works fine but my second doesn't!
It gives me a 404 error!
How can I solve it?
Thank you