[development] How to call a function when a certain permissionis set?

Leo Burd leob at media.mit.edu
Thu Mar 23 02:49:46 UTC 2006


Thanks, Darrel!

.L.


----- Original Message ----- 
From: "Darrel O'Pry" <dopry at thing.net>
To: <development at drupal.org>
Sent: Monday, March 06, 2006 9:19 PM
Subject: Re: [development] How to call a function when a certain 
permissionis set?


> Leo,
> The best way I know of for 4.6  would be creating a custom page, or
> call back, or button on the settings form that does this kind of work
> for you. Check out how Drupal makes sure the files and temp directories
> exist in system.module:system_settings.
>
>
>
> On Mon, 2006-03-06 at 18:19 -0500, Leo Burd wrote:
>> Hello there,
>>
>> Is there any way to call a specific function everytime a certain 
>> permission
>> is set or reset? For instance, if the admin users allow users of a 
>> specific
>> role to have access to voicemail, I'd like to create voicemail boxes for 
>> the
>> users that already exist in the database. Not just for the new users that
>> will be created over time.  What do people do in a situation like that?
>>
>> Thanks in advance,
>>
>> Leo
>>
>> PS. I'm using Drupal 4.6...
>>
>>
> 



More information about the development mailing list