Search in group Search
Can we send email attachments with Drupal 7 rules?
Hello all,
I would like to know if we have the capability in Drupal 7 to have the Rules framework set up a "Send Email" action and include in that email a file field from a custom content type we have in our website.
Read moreInvoke component
I'm writing some integration between Rules and CTools, and have more than once ended up in the situation that I need/want to invoke a component (say, rule set) and can't know how many parameters there will be.
Read moreMultiple actions result in an exception
On the event 'after saving a new user account' based on a certain condition, if i try to unblock or assign a role to a user at the same time, it results in a db exception being thrown:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '27-4' for key 'PRIMARY': INSERT INTO {users_roles} (uid, rid) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => 27 [:db_insert_placeholder_1] => 4 ) in user_save() (line 595 of C:\xampp\htdocs\spots\modules\user\user.module).
Read moreNiche functionality, would appreciate any advice
I am building a website for a educational program where there are three roles: Instructor, Student Mentor, and Student Mentee. Using the references module, I'm able to link Mentor profiles to mentee profiles pretty nicely. Only instructors (and admins) are allowed to create references between mentors and mentees, and I'm using the Rules module to automate the process. For instance, if the instructor edits a mentor's profile to reference two mentees, the two mentees' profiles are updated to be referenced to that mentor.
Read moreNeed Advice - Rule for emailing web form users on content type update
I'm new to the rules (still going through the excellent nodeone.se rules tutorials) and have a simple problem. I have created a web form to take anonymous users emails (I don't want to create user accounts) and from the stored emails taken by web form I want to create a rule that tells these anonymous users when a content type is updated. Is this possible?
Appreciated for any help in advance.
Jon
Read moreProblem sending emails with attached files and "dynamic" path
I have created a rule which sends an HTML email whenever a user posts an article. Everything work just fine but the attachments files. The idea is to send as attached files the images which the user just uploaded/posted. Actually I'm able to send emails with attached files as long i provide the absolute path: /sites/default/files/attachment_image.jpg but since i will not know the name of the users uploaded files I should configure it something like: /sites/default/files/[node:field_image] to make it more dynamic.. but this options does not work and can't figure it out how to do so.. :(
Read moreUsing Rules to redirect to OG homepage
Hi, on my D7 sitem every user will be a member of one Organic Group.
How can Rules redirect user to group page on login?
Thanks!
Read moreHow to create a top level parent menu item on "save new content" of "Type Foo"
Rule: Create New Menu Item(top-level parent, main menu) on node save.
Read moreHow to pass value from rules_invoke_event() to the rules_action_info() 'base' handler?
Hi,
I'm fairly new to Rules in Drupal 7 and I'm trying to figure out how to pass a string value from the rules_invoke_event() call so that I can access it in the handler defined by _rules_action_info()...
I invoke the event...
rules_invoke_event('my event', 'this is a test');I define the handler here...
function my_module_rules_action_info() {
$defaults = array(
'group' => 'My Group'
);
return array(
'my_action_name' => array(
'label' => t('Do Something'),
'base' => 'my_method'
)
);
}Trigger for "User has logged in" event
I've set up a rule to fire on the event "User has logged in," but it doesn't get triggered when I authenticate with Shibboleth (shib_auth module). It does when I login as a native Drupal user or even LDAP user (ldap module). This is for a Drupal 7 site.
What is the actual hook/method that "User has logged in" depends on? The shib_auth module calls user_external_login_register which then calls user_login_submit, so I'm not sure what's getting bypassed. Would the best solution be a custom event "Shibboleth user has logged in," or might this be considered a bug in the shibboleth module?
Read more


