<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<pre wrap="">Then, could someone help me with some process or procedure by which I could prevent user_access() from caching $perm or override the results of this caching? Even if I turn Drupal caching off, this function's caching of $perm still occurs, causing my module problems where it shouldn't have them.
Thanks!
-ron
Quoting Ron Parker <a class="moz-txt-link-rfc2396E"
href="mailto:sysop@scbbs.com"><sysop@scbbs.com></a>:
</pre>
<blockquote type="cite">
<pre wrap=""><span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">> </span>That is: The user_access() function sets a static variable $perm =
<span class="moz-txt-citetags">> </span>array(). Permissions are cached in this variable. Can I create a
<span class="moz-txt-citetags">> </span>function in my module that can update the $perm variable that is set
<span class="moz-txt-citetags">> </span>in the user_access() function of the node.module?
<span class="moz-txt-citetags">></span>
</pre>
</blockquote>
<pre wrap=""><!---->
A variable declared within a function is private to the function unless
the function declares it as global.
Earnie</pre>
<pre class="moz-signature" cols="72">--
Ron Parker
Software Creations <a class="moz-txt-link-freetext" href="http://www.scbbs.com">http://www.scbbs.com</a>
Self-Administration Web Site <a class="moz-txt-link-freetext" href="http://saw.scbbs.com">http://saw.scbbs.com</a>
SDSS Subscription Mgmt Service <a class="moz-txt-link-freetext" href="http://sdss.scbbs.com">http://sdss.scbbs.com</a>
Central Ave Dance Ensemble <a class="moz-txt-link-freetext" href="http://www.centralavedance.com">http://www.centralavedance.com</a>
R & B Salsa <a class="moz-txt-link-freetext" href="http://www.randbsalsa.com">http://www.randbsalsa.com</a>
</pre>
</body>
</html>