<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1044692" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1044692</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Same problem arised me last</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/ajax-and-hook-menu-drupal#comment-1247931</link>
    <description> &lt;p&gt;Same problem arised me last week and I was searching for the issue but can&#039;t find it over internet. One of my friend gave me the same solution. Today while reading this post, I got the idea from where my friend got the idea &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 21 Mar 2010 16:56:01 +0000</pubDate>
 <dc:creator>blueeye</dc:creator>
 <guid isPermaLink="false">comment 1247931 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Had the same problem, and</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/ajax-and-hook-menu-drupal#comment-1247388</link>
    <description> &lt;p&gt;Had the same problem, and have spent countless hours trying to find a solution.  The one(s) presented here work!  Its awesome!&lt;/p&gt;
&lt;p&gt;Thanks so much!&lt;/p&gt;
 </description>
     <pubDate>Thu, 25 Feb 2010 12:49:46 +0000</pubDate>
 <dc:creator>jontanderson</dc:creator>
 <guid isPermaLink="false">comment 1247388 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Found it.
It was the</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/ajax-and-hook-menu-drupal#comment-1244586</link>
    <description> &lt;p&gt;Found it.&lt;/p&gt;
&lt;p&gt;It was the hook_perm as you said:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;simpim_perm&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return array(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;access messages&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Once I put that into my module, it showed up in the permissions page so I could click &#039;authenticated use&#039; and it worked.&lt;/p&gt;
&lt;p&gt;Sheesh!&lt;/p&gt;
&lt;p&gt;I have been struggling with this for 4 weeks!&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Aug 2009 21:45:35 +0000</pubDate>
 <dc:creator>davecoventry</dc:creator>
 <guid isPermaLink="false">comment 1244586 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Bugger!
I thought it was</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/ajax-and-hook-menu-drupal#comment-1244585</link>
    <description> &lt;p&gt;Bugger!&lt;/p&gt;
&lt;p&gt;I thought it was sorted, but it appears to only be sorted for the admin account. Ordinary users are still getting 403. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Aug 2009 16:49:13 +0000</pubDate>
 <dc:creator>davecoventry</dc:creator>
 <guid isPermaLink="false">comment 1244585 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>davecoventry</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/ajax-and-hook-menu-drupal#comment-1244570</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;davecoventry&lt;/em&gt; wrote:&lt;/div&gt;JB,&lt;/p&gt;
&lt;p&gt;Forgot to say thanks!&lt;/p&gt;
&lt;p&gt;No manners, I&#039;m afraid. :(&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;No worries. You&#039;re welcome. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Aug 2009 06:53:21 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1244570 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>So the string is actually a</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/ajax-and-hook-menu-drupal#comment-1244569</link>
    <description> &lt;blockquote&gt;&lt;p&gt;So the string is actually a space-separated array? Bizarre.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Nope. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;It&#039;s just an array of arguments to pass to the access function. For example, you could use:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;access arguments&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; array(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;kiss my arse&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;),&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;As long as you define the permission in a &lt;a href=&quot;http://api.drupal.org/api/function/hook_perm/6&quot;&gt;hook_perm&lt;/a&gt; implementation, you&#039;ll be able to see it on the &lt;em&gt;Administer -&amp;gt; User management -&amp;gt; Access control&lt;/em&gt; page.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Where do you get a listing for the valid values for this array?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Any strings are valid (see above), I made up the &#039;access messages&#039; permission. Drupal builds the list of permissions automatically from every module&#039;s &lt;code&gt;hook_perm&lt;/code&gt;, so you really can give it any values you want. Just remember to get Drupal to rebuild its cache by visiting &lt;em&gt;Administer -&amp;gt; Site building -&amp;gt; Modules&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Go to: &lt;em&gt;Administer -&amp;gt; User management -&amp;gt; Access control&lt;/em&gt; and you&#039;ll see your permission there.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;I actually said to Heine that I thought that the &#039;access arguments&#039; was a list of local parameters to be passed to the callback function and he didn&#039;t disabuse me of this.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;It is! Check out &lt;a href=&quot;http://api.drupal.org/api/function/user_access&quot;&gt;user_access&lt;/a&gt;. The arguments in the &lt;code&gt;access arguments&lt;/code&gt; array are handed to the &lt;code&gt;user_access&lt;/code&gt; function.&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Aug 2009 06:52:48 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1244569 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>JB,
Forgot to say thanks!
No</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/ajax-and-hook-menu-drupal#comment-1244563</link>
    <description> &lt;p&gt;JB,&lt;/p&gt;
&lt;p&gt;Forgot to say thanks!&lt;/p&gt;
&lt;p&gt;No manners, I&#039;m afraid. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Aug 2009 18:50:22 +0000</pubDate>
 <dc:creator>davecoventry</dc:creator>
 <guid isPermaLink="false">comment 1244563 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>JeevesBond wrote:
Does that</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/ajax-and-hook-menu-drupal#comment-1244536</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;JeevesBond&lt;/em&gt; wrote:&lt;/div&gt;&lt;br /&gt;
Does that make sense?&lt;/div&gt;&lt;br /&gt;
Not really.&lt;/p&gt;
&lt;p&gt;So the string is actually a space-separated array? Bizarre.&lt;/p&gt;
&lt;p&gt;Where do you get a listing for the valid values for this array?&lt;/p&gt;
&lt;p&gt;I actually said to Heine that I thought that the &#039;access arguments&#039; was a list of local parameters to be passed to the callback function and he didn&#039;t disabuse me of this. Even when I said that I didn&#039;t use it because I was reading the arguments from $_GET mechanism.&lt;/p&gt;
&lt;p&gt;Also, I *was* testing from the admin account and it still gave me the 403.&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Aug 2009 06:06:45 +0000</pubDate>
 <dc:creator>davecoventry</dc:creator>
 <guid isPermaLink="false">comment 1244536 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>As Heine said, rather</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/ajax-and-hook-menu-drupal#comment-1244521</link>
    <description> &lt;p&gt;As Heine said, rather tersely, it&#039;s a list of the permissions the user has to have before they can access the menu item. If you&#039;re testing this as the admin user you&#039;ll get a free pass, because you get a free pass for every permission. Try accessing that URL as an anonymous user, or user who doesn&#039;t have that permission and you&#039;ll see the access denied message.&lt;/p&gt;
&lt;p&gt;Does that make sense?&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Aug 2009 02:29:07 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1244521 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Hey JB!
It worked!
How is</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/ajax-and-hook-menu-drupal#comment-1244509</link>
    <description> &lt;p&gt;Hey JB!&lt;/p&gt;
&lt;p&gt;It worked!&lt;/p&gt;
&lt;p&gt;How is that possible?&lt;/p&gt;
&lt;p&gt;What exactly does array(&#039;access messages&#039;) mean? Surely it&#039;s an array with one element which holds a string, but I can&#039;t see the relevance of that string.&lt;/p&gt;
 </description>
     <pubDate>Wed, 26 Aug 2009 15:35:33 +0000</pubDate>
 <dc:creator>davecoventry</dc:creator>
 <guid isPermaLink="false">comment 1244509 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
