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
0answers
6 views

Expose “Enqueue the operation instead of executing it directly” option to users at per bulk configuration form

Is that possible? Alternatively, I would like to change this setting programmatically based on the number of items selected to be processed by VBO. For example, ten items or less will be processed ...
0
votes
0answers
17 views

Creating a custom View's Bulk Operations action with per bulk configuration form and enqueuing it

I have followed the guide at https://www.drupal.org/node/2052067 and have successfully created a custom action that can be called from VBO. I have also set-up a per bulk configuration form as ...
0
votes
1answer
20 views

Run a view's bulk operation immediately but in background. Is that possible?

Is it possible to run a view's bulk operation immediately after pressing the button but in the background (in other words, without forcing the user to wait until the progress bar completes to 100%)? ...
0
votes
1answer
29 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
27 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
33 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
16 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
22 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
32 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
20 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
35 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
44 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
55 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
37 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
36 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
49 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
101 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
56 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
50 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
61 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
491 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
39 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
100 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... ...
2
votes
1answer
369 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
194 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
290 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
250 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
162 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
79 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
223 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
465 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
115 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
528 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
139 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
377 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
308 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
322 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
239 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
859 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
989 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
177 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
228 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 ...