Posted by LeMale on March 20, 2010 at 11:31am
Hi,
Can you please tell me how to add some condition with php before acces any new content ?
I mean, when a user create a node, I want to add something like
if (node title containe a word for exemple) then (publish the content) else (display a message about this bas title).
Where to add such a php verification ?
Comments
Actions and Triggers functions
Actions and Triggers functions may do what you want. See http://drupal.org/node/199254. These perform actions on particular triggers ie if condition do somthing and if you know php you can also write your own.
If not try the rules module which has more functionality http://drupal.org/project/rules .
The rules modules allows site administrators to define conditionally executed actions based on occurring events (known as reactive or ECA rules). It's a replacement with more features for the trigger module in core and the successor of the workflow-ng module.
• Send customized mails to notify your users about important changes
• Build flexible content publishing workflows
• Create custom redirections, system messages, breadcrumbs, ..
• And a lot more....
Peter J Lord
munro-madness.com
I use rules modules for some
I use rules modules for some other tasks, will add the function I want too, thanks.