<p>I happen to have a handy link where I somewhat thoroughly went through this. How do you link to SO without it looking like point farming? Not linking your own answers?</p>
<p><a href="http://stackoverflow.com/questions/5124584/how-to-use-hook-menu-alter-to-manipulate-path-access-control">http://stackoverflow.com/questions/5124584/how-to-use-hook-menu-alter-to-manipulate-path-access-control</a></p>
<div class="gmail_quote">On Mar 10, 2011 4:23 PM, "Bob Hutchinson" <<a href="mailto:hutchlists@midwales.com">hutchlists@midwales.com</a>> wrote:<br type="attribution">> On Thursday 10 March 2011, John Mitchell wrote:<br>
>> How do I restrict the custom urls (listed below) to a specific role?<br>> <br>> Set 'access callback' to a function and do it there.<br>> <br>> <br>>> <br>>> //hook_menu()<br>>> <br>
>> function custom_subscription_menu() {<br>>> $items = array();<br>>> <br>>> $items['admin/store/free_subscription'] = array(<br>>> 'title' => 'free_subscription_form',<br>
>> 'description' => 'free_subscription_form',<br>>> 'page callback' => 'free_subscription_form',<br>>> 'access callback' => TRUE,<br>>> 'type' => MENU_CALLBACK,<br>
>> );<br>>> <br>>> $items['admin/store/process_free_subscription'] = array(<br>>> 'title' => 'process_free_subscription',<br>>> 'description' => 'process_free_subscription',<br>
>> 'page callback' => 'process_free_subscription',<br>>> 'access callback' => TRUE,<br>>> 'type' => MENU_CALLBACK,<br>>> );<br>>> <br>>> return $items;<br>
>> }<br>> <br>> <br>> -- <br>> -----------------<br>> Bob Hutchinson<br>> Midwales dot com<br>> -----------------<br></div>