Questions related to Drupal actions. Action is a specially written PHP function whose parameters are configured through the web.

learn more… | top users | synonyms

0
votes
1answer
7 views

Rules token one-time-login-url is showing up empty

I have a rule that, after submitting a webform, a user gets created and then sends two emails to that user. One saying their form data is being looked at by someone for review before they get a ...
0
votes
1answer
22 views

Perform action on logout,

I would like to add javascript on logout. I tried using hook_user_logout but the javascript doesn't get added. Even adding something as simple as drupal_set_message doesn't result in a message ...
0
votes
1answer
25 views

Pop-up for view bulk operation?

Normally View Bulk Operation (VBO) will lead to separate page for asking details and performing actions. Is there any module readily available to show pop-up for views bulk operations. Searches did ...
0
votes
0answers
10 views

Adding a custom vbo action in drupal 6

function custom_profile_action_info() { return array( 'custom_profile_mail_action' => array( 'type' => 'system', 'description' => t('Custom Send Mail'), 'configurable' ...
0
votes
1answer
17 views

How to use hook_rules_action_info_alter

I am running Drupal Commerce, and I want to modify the message it prints out when an item is added to the cart. I found that the commerce_cart_rules_action_info() function implements the ...
0
votes
0answers
22 views

Returning a variable from a rules action

I am trying to create a variation on Fetch Entity, and I'm having trouble returning an entity. I'm just grabbing the data using db_query, and trying to return an array of nodes that are loaded, but ...
0
votes
1answer
13 views

Permission Issue with created actions and VBO

I’ve created a new action in a custom module using hook_action_info() /** * Implementation of hook_action_info(). */ function recruiteractions_action_info() { return array( ...
0
votes
2answers
29 views

“Send email” action not working to send email to poster of comment

I have successfully set up email notifications on my client's blog for administrators when new comments are posted and am now trying to set it up to send a thank-you email to the poster of the comment ...
0
votes
1answer
23 views

User tabs and actions

I have a custom module and in hook_menu have defined the items below. I have created a new user tab below: $items["user/%user/TAB"] = array( "title" => t("TAB"), "page ...
0
votes
1answer
38 views

Returning an entity from a custom Rules action

I'm new to writing modules and back end dev. I'm trying to write a custom Rules action that takes a list and returns one item from that list to use as a relationship end point. I've declared the rule ...
0
votes
1answer
28 views

How to run an action on condition that returns true in the rules?

How to run an action (hook_rules_action_info ()) for each condition (hook_rules_conditions_info) defined in the rules.
0
votes
1answer
46 views

Is there a way to pass a form #value to the form #action in Drupal 7 form API?

In the example below I want to take elements from the form and include them as part of the URL that I am submitting the form (using #action) so the submitted URL would look like ...
1
vote
1answer
20 views

It is possible to have an action for the condition rules?

I have several conditions that are called in rules_condition_info () and wanted to have an action for each, for whenever a function returns true, it is called an action. I know it's probably possible, ...
0
votes
1answer
34 views

when a button_field is presses, how do I access the node that owns the button?

I have a button (button_field) on a content type which is rendered by a view. The view will display a list of items and each will have a clickable button. When the user clicks a button, I need write ...
0
votes
0answers
30 views

Set user field (int) with webform submission field (int)

I would like to update a property of a user when a specific webform is submitted. I have a Rule After a webform has been submitted with a condition Webform has name with some actions. The actions are ...
0
votes
0answers
44 views

Use created node in rules action after saving node

I'm trying to create an action to trigger after saving new content of type Invoice. I would like to get a pdf file by a link with file_get_contents and send it as attachment to a user. So I will ...
0
votes
1answer
13 views

Notify site users based on user account field (e.g. apt number)

I run a site for my condo, the HOA wants to setup a way to notify residents when they get a package, that needs to get picked up from the office. In the users account settings their are both unit ...
1
vote
1answer
93 views

D7 : Create an Action on 'node_insert' or 'node_presave'

I created a new action on a new node being created, it shows up in my triggers and the action gets triggered. Works so far. Problem is trying to add additional functionality using some submitted field ...
0
votes
1answer
47 views

Flags: get Action after a user flagged a specific number of nodes?

I would like the users of my site to choose a specific number of nodes. After this they should see, to which taxonomy term these nodes belong to. I have already found the flag module as well as flag ...
0
votes
0answers
45 views

Module for Action Buttons in each Views Row?

This is a great example of how to add preset action buttons to each row in a view: https://drupal.org/node/1517916 Is there a module that generalizes this idea to a button field that can be labeled ...
0
votes
1answer
26 views

Is it possible to select all results in Views bulk actions form?

By all results I mean even those that are not displayed on the current page(if there is paging).
1
vote
2answers
53 views

Custom action to create a new entity based on a fields of an existing entity

There are two entity types on my site: 1) an application for participation (entityform) and 2) a participant profile (node). At first user creates an application for participation. And then site ...
0
votes
1answer
434 views

Getting “Access denied for user anonymous” when calling a CRUD function

I configured a REST service with the Services module and created a custom service with the CRUD + index functions. If I call the index function like so localhost/drupal/blog/note, it gives me the ...
0
votes
0answers
12 views

Defined action in custom module is not firing

I have an action defined in a custom module, with a self-contained function that fires on every node save or update. While the installation detects the action being defined through the Admin ...
0
votes
0answers
38 views

Rules custom action

I've created a new rule with event After creating a new content, custom action with hook_rules_action_info() and added that function into the actions. If I use drupal_set_message('Hello world'); in ...
0
votes
1answer
77 views

Rules: how to create variable with PHP and $_SERVER['HTTP_REFERRER']

I want to parse the query string off the HTTP_REFERRER and make that available as a variable for actions to use. I feel like one of these options should let me do that, but I can't be sure... ...
1
vote
1answer
293 views

Programmatically trigger rules action component

I have some problem in triggering an action component. I tryed to call it from the module function and from the devel/php page. This is my component settings As you can see I have one node argument ...
1
vote
1answer
160 views

How to perform a REST request after a node created using rules?

I have a backend service written by Python, which is exposed a JSON api. And I want drupal to perform an HTTP POST/PUT/PATCH/DELETE... request with json data (which is an output of a node) to the ...
0
votes
1answer
57 views

how to create a new node of a content type when a new node created of another content type?

my problem is : I have a content type called job posting, every job post will associated with a test set that every candidate should write to get qualified for that job i.e., when I create a node of ...
0
votes
1answer
251 views

Trigger Action on Entity from Button in Views Row?

I know actions can be done with VBO, but I just want a button in each row of a view of entities. When I press the button, the action is executed for that entity.
1
vote
0answers
241 views

User account validated rule, action happens twice

UPDATE As Molot has pointed out this isn't anything to do with emails, just the rule happening twice. I'll leave the text below incase anyone else is trying to send out emails on verification and ...
0
votes
1answer
152 views

How do you perform a rules action by the quantity of a specific commerce product?

I'm working on a module which is going to be used alongside Drupal Commerce so people can buy a set number of digital products. I've written a custom rules action, which will be run once for each ...
0
votes
1answer
78 views

Modal notification box on the screen of every authenticated user

I want that every time I or any other admin (I have 2 more) post a new article each authenticated user should get a modal notification box on it's screen displaying a teaser of the Content Type I have ...
0
votes
1answer
215 views

Writing a custom Rules Action for VBO- do I need to use Entity?

I have a list of email addresses displayed in a view. I'd like to parse those email addresses using a rules action, via VBO. I'm trying to pass the email address to my rules action as a parameter, ...
1
vote
1answer
440 views

Getting current node ID for use in VBO operation

I have a view of nodes and I'm using VBO and rules to apply taxonomy terms to the nodes. What I want to do is: Get the current node's ID (that is, the node with the view block in it). Get the value ...
0
votes
1answer
109 views

REST request through Actions and Triggers

In Drupal, I can define a Advanced Action in Administration>Actions , but the available options does not have a Send REST request option, how do I achieve what I want? In my case, I want my remote ...
0
votes
1answer
491 views

What is the actions table for and can I delete orphaned actions in drupal 7?

i just ran drush cc all -v and it tells me i have orphaned actions. I'm curious to what the actions table is for in drupal 7 and if its safe to just drop all the data in the actions table.
2
votes
2answers
128 views

Action to be triggered on Comment Approval

How can add new rule to trigger when a comment approve, in drupal7? Thanks for your Support...
0
votes
1answer
364 views

User relationship requests in a view block with accept and decline links

I have a node in which i want to show a user all the relationship requests the current user has received and a status link below that so that the user can accept or decline the request then and there ...
3
votes
1answer
296 views

Drupal Rules: How do I check if node is updated via edit form or via VBO?

I'm trying to build a reaction rule that fires on the event After updating existing content, but with the condition to only run after the node has been manually updated using the node edit form, not ...
0
votes
1answer
304 views

Regarding flag actions and rules integration

I am using flags by the Flag module. I added two action on that flag through Flag actions. The first one is to send an email to the site admin whenever the node is flagged. The second is to do a Page ...
3
votes
1answer
229 views

What does 'set breadcrumb' do in Rules?

One of the actions that comes with the Rules module is 'set breadcrumb'. When trigger this action, however, nothing seems to happen to the breadcrumb. What is supposed to happen? Does it set the ...
1
vote
1answer
814 views

Module that provides Rules action to create node?

Is an Action to create a node available in any module? I tried searching but couldn't find it. I was hoping something as basic as a node create action would be available.
2
votes
1answer
919 views

Give permissions to a non-admin user for custom rules components

I have a view, format: table; and a few fields: Bulk operations: Content Content: Title Content: Price Content: Stock 1 (Stock 1) Content: Stock 2 (Stock 2) Content: Stock 3 (Stock 3) Global: Math ...
1
vote
1answer
169 views

How to make a Data Selector a negative value in a rule action?

I create a rule and inside it I added a action, this action involves a data selector: node:field-labpoints. I need to make this data selector a negative value. I tried with -node:field-labpoints and ...
1
vote
1answer
1k views

Rules + Button Field: getting entity object to a custom action

I am using Rules 7.x-2.2 with the latest version of Button Field (http://drupal.org/project/button_field), Session API (http://drupal.org/project/session_api) and a custom module to store some entity ...
2
votes
1answer
221 views

Schedule change of field

Rules does not allow data selection of fields without first knowing the node type actually has said field. Rules only allows you to schedule components. Rules action components can't have conditions ...
2
votes
0answers
124 views

Installed Commerce Drupal 7 with Examples but Cannot create Add a Product Action for new Product line [closed]

I am sure this is a newbie question and I apologize in advance but I have spent most of the day trying to solve this problem. From the examples that I have seen, apparently creation of a product ...
0
votes
0answers
240 views

How to disable a rule action?

When creating rules I use to create System Message actions to print out some values for checking purposes. Then in production I'd like to disable instead of deleting these actions. Is there any way to ...
3
votes
1answer
58 views

Trigger a rule when a module update is available

It would be terrific to have Rules integration for when the Update Manager module finds an update. Is there a way to do this? Potential ways I'd use this would be to have an update page, customized ...