How can I call 2 functions in the same custom module? 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' =&gt; 'First function',
    'page callback' =&gt; array('myModule_first_function'),
    'page arguments' =&gt; array(1,),
  );
  $items['disableproject'] = array(
    'title' =&gt; 'Second function',
    'page callback' =&gt; array('myModule_second_function'),
    'page arguments' =&gt; 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
You need to add 'access arguments' to your call:

$items['disableproject'] = array(
  'title' =&gt; 'Second function',
  'page callback' =&gt; array('myModule_second_function'),
  'page arguments' =&gt; array(1),
  'access arguments' =&gt; array('some permission'),
);


Or you can add a custom access callback:

$items['disableproject'] = array(
  'title' =&gt; 'Second function',
  'page callback' =&gt; array('myModule_second_function'),
  'page arguments' =&gt; array(1),
  'access callback' =&gt; 'some_access_callback_function',
);