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
7 views

Define permissions for Actions?

function custom_mod_action_info() { return array( 'custom_mod_delete_user_cats' => array( 'label' => t('Delete a users cats'), 'type' => 'user', 'configurable' => ...
0
votes
0answers
9 views

Passing custom object through the Rules and SOAP Web Services

I deal with SOAP client, to send some Commerce Order info, after succesfull payment. I am at the point where I need to send an object with test data: $customerInfo = new stdClass(); ...
2
votes
1answer
62 views

How to create a custom event in rules?

I need to create an custom event for an action to be triggered in the Rules module. Custom event is after completing the checkout process the page will be redirected to confirmation page. I need to ...
0
votes
0answers
29 views

VBO custom action and submit functions from my module don't get called

I am trying to make my custom action for View Bulk Operations. My action works up to the point where I submit the form specified in assign_to_action_form. The watchdog statement in that function get's ...
2
votes
0answers
34 views

Custom action SQL update not executing?

I created a custom VBO action to change a value in the selected item. I have the button displayed as "hide item". When I activate it on the item it doesn't seem to fire and change the value at all. I ...
1
vote
0answers
41 views

Can I use Views Bulk Operations or something similar to create an archive of files generated by Views data export?

Using Views Data Export, I have multiple CSV files generated/provided by several different displays. Rather than setting up something where the user clicks a "Download CSV" button corresponding to ...
2
votes
1answer
35 views

Multi action in rules drupal 7

How I can add actions in the rules in which they have a relationship with each sequentially. I mean Action sequentially pass data to next action and in next action I can use passed data from previous ...
0
votes
0answers
26 views

Cannot display icons in Buttons of EntityForms Using Bootstrap theme

I am using bootstrap theme version 7.x-3.1-beta2+65-dev and Entity Forms. Bootstraps lets us change the icon of form buttons and its color using hooks. But the buttons in EntityForm does not have ...
0
votes
0answers
57 views

Download a file from a VBO Action

I am trying to create an action for Views Bulk Operations (VBO) that allows a user to export a bunch of (biblio) nodes from a view as bibTEX file. I have the following module defined. It works, except ...
0
votes
0answers
29 views

Redirect on login not working with LoginToboggan

I'm trying to use actions/triggers to redirect users to a specific page after login but it's not working. I'm using LoginToboggan to put the login in the header and I think it could be interfering ...
2
votes
1answer
39 views

Get the user id for triggers when deleting a user

I have a script that sets up a specific url for a user when they register on a site, There are no real issues at the moment, but I need to cater for those 'unlikely things to happen that happen 20 ...
0
votes
0answers
126 views

Why cURL not sending my data to salesforce?

I am using drupal form to build a contact us form. I want to send my contact us data to salesforce. My contact us form has action ...
1
vote
1answer
39 views

How to embed plugin configuration form elements into another form?

I have a form that lists entities and each of the entities has a checkbox. The form also contains a list of actions(Action plugin) that can be performed on selected entities as a select list. I would ...
1
vote
1answer
76 views

How do I Bulk Edit Fields or Taxonomy of Nodes in Drupal 8?

I'm working on a site that needs bulk tagging on nodes. The D8 core View Bulk Operations Port is "simple" (https://www.drupal.org/node/1823572) and it doesn't have "modify entity values" which I used ...
0
votes
1answer
104 views

Imagecache Custom Actions - Imagemagick

I cannot get my imagecache custom actions to work at all? When returning $image in any way, it gives me an error, which can be resolved by adding in the first line here: if ...
0
votes
0answers
27 views

Apply multiple imagecache actions based on selections?

I want to allow my users to upload a single image, but select many options on the same form. For example, one option would have 3 possible choices, and depending on the selection made the imagecache ...
0
votes
0answers
16 views

immutable 'label' in a hook_action_info

I am working my way through the "Pro Drupal 7 Development" book. I got to the discussion of triggers and actions. Now, I've got the following code: function beep_action_info() { return array( ...
0
votes
1answer
151 views

VBO Pass Argument to Custom Action Function

I have a view that list entities. It has a VBO field on it for executing a few custom actions. I can get the actions working, but I need to add a field to the operations form on the view which lets ...
0
votes
1answer
58 views

Act on date field value

I have a CT with a Date (Unix timestamp) field implemented. It represents the start date of an event. One simply question: Is there a way to compare somehow, this value with the current date() and ...
0
votes
1answer
104 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
261 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
100 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
112 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
72 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
99 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
1answer
329 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
239 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
74 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 ...
-1
votes
1answer
49 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
289 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
323 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
33 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
57 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
1answer
16 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
209 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
164 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
1answer
62 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
104 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 ...
1
vote
1answer
477 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
1k 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
790 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
60 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
638 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
378 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
290 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
91 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 ...
1
vote
1answer
341 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
692 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
248 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
2answers
1k 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.