Search in group Search
Opportunity for better workflow/content moderation support in Core
The upcoming Drupal 7 update brings with it a great opportunity to provide better support in Core for advanced workflows with content moderation, but the code freeze is fast approaching and this opportunity may pass us by. I encourage all developers to check out Support Revisions in Different States in the Drupal issue queue and lend a hand.
Why you should care?
Read moreRules Monkey: Update #5
This is the fifth update of the Rules Monkey Summer of Code project. Implementation of the form support in Rules is on the way.
- The form support code is located in a sub-module of Rules
- Rules admins can activate/deactivate events on selected forms
- Form element IDs are made visible for the Rules admin on the selected form
- Currently there are 3 events: "form is being built", "form is validated" and "form is submitted"
- There is one condition to check a form element value
Using Execute PHP to set Permissions in TAC
require_once(drupal_get_path('module', 'taxonomy_access') . "/taxonomy_access_admin.inc");
function tgtbn($name) {
$db_result = db_query(db_rewrite_sql("SELECT t.tid, t.* FROM {term_data} t WHERE LOWER(t.name) = LOWER('%s')", 't', 'tid'), trim($name));
$result = array();
while ($term = db_fetch_array($db_result)) {
$result[] = $term;
}
return $result;
}
$srch_name = "".$author->name."-".$node->title."";
$roles = _user_roles();
$role_id = array_search($srch_name, $roles);
if(!is_numeric($role_id)){echo "role id is not a number";}
Read moreRules Monkey: Update #6
This is the sixth update of the Rules Monkey Summer of Code project. Many good news:
- Form support for Rules has been committed, have fun!
- Fago gave me CVS access to Rules, because I will be the Form support maintainer (I will try to not break Rules ;-)
- We did some research for new icons in Rules.
- I worked on some usability details, the corresponding issue also contains the new icons.
Rules Monkey: Update #7
This is the seventh update of the Rules Monkey Summer of Code project. The progress we made last week:
- Rules has now some new icons in the admin area (including some other usability fixes)
- Patches are ready for two new Rules form support features: disabling elements and setting a default value
Attach file to email sent by triggered rules
I am using triggered rules to notify people of field changes for certain node types. Is there a way to attach a file to these emails sent by triggered rules? The files I am looking to have attached to the email will already be attached to the node using filefield or core attach I can use either, so which ever would be easier to hook in to the rules I'll use.
any thoughts? is there an easy solution that I've overlooked?
Read moreUsing Rules for Node Validation
I have been using Rules a lot lately and I absolutely love it! The one place I felt it was lacking, though, was that it didn't have the ability to intercept node validation, to trigger rules that ensure that a node a user is submitting matches some complex criteria. So, I wrote a module to do just that!
Read moreLoops with Rules ?
Hi, I want to use rules to cycle through a number of nodes and produce derivatives of those.
I tried to implement a loop by defining a counter that is updated after every cycle. Then I want to call a rule set earlier in the sequence.
Now I get a notification that the specific rule is not invoked because of recursion prevention.
Is there a way to get around this?
Do I have to take special precautions in the transfer of variables ?
Is this simply something that can not be done with the current version of Rules?
Rules Monkey: Update #8, the end!
This is the eighth and last update of the Rules Monkey Summer of Code project. Summer of Code is over, time to do a summary:
- I worked on 13 issues in the Rules issue queue and on 2 in the Workflow issue queue.
- I created a new submodule of Rules: Rules forms support.
match an empty field
I am trying to write a rule to match an empty field and am not having much luck. I've tried about everything I can think of, including some very inventive regexes, but no luck yet. Anyone know how to accomplish this?
Read more

