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

Custom vbo action disappearing [on hold]

Everything is in the title. I've created my custom entity and custom action but from time to time I have to flush the cache to see my custom VBO operation reappearing. For example, if I delete one ...
0
votes
0answers
40 views

notify all users with a popup message after node creation [closed]

I want to notify all authorized users after a node published with a popup message or any message box. Some of users may minimized your browser or seeing other tab and I want by this way aware them for ...
0
votes
0answers
19 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
21 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).
0
votes
1answer
32 views

How to write a custom action that provides a new integer variable?

My articles have a field collection field and one of the fields is an integer. Users can add as many fields as they want. I'd like to reward them some userpoints, equal to the total value in their ...
1
vote
0answers
44 views

How to process a value with PHP in Rules?

My articles have a field collection field and one of the fields is an integer. Users can add as many fields as they want. I'd like to reward them some userpoints, equal to the total value in their ...
1
vote
2answers
28 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
93 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
9 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
25 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
39 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
76 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
57 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
47 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
103 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
168 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
115 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
60 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
140 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, ...
0
votes
1answer
314 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
64 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
272 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
89 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
233 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
229 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
207 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
135 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
555 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.
1
vote
1answer
555 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
134 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
918 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
192 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
123 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
162 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 ...
0
votes
1answer
928 views

Drupal 7 Rules : How to get Node Object (from Custom PHP) after a node event is triggered?

In Drupal 7, i am setting up a rule. That rule is applying to trigger on the Node Save event. After the node is saved [Condition] and the rule is properly triggered, then how can i get that saved ...
0
votes
2answers
629 views

VBO custom action: get the list of selected items

I need to create an vbo action to produce a document (pdf) with a page for every item selected in the list. Using im using hook_action_info but the callback get called once for every item selected; I ...
2
votes
1answer
645 views

Drupal Commerce Rules & Custom Actions

When the checkout process is complete I'd like to record the SKU and the user ID in a separate table in my database. Is the best approach to use the Rules module, using the 'Completing the checkout ...
1
vote
2answers
99 views

How do you dynamically redirect a user's role?

This is a two parted question that deals with two different Modules "User" (or even possibly "triggers and actions") and Profile2. The main task is to have a user dynamically placed within a user role ...
0
votes
1answer
191 views

node_publish_action is not publishing the node

I'm trying to add a submit handler to a "Done" button that should publish a node when the button is pressed. It's a scenario where the Rules module won't cut it, it has to be in code. I tried to ...
0
votes
1answer
217 views

How can I save an Advanced Action on Drupal 7 installation when there's no save button?

I am at the 'edit / configure an advanced action page' and I try to create or edit one of my "send email" actions (admin/config/system/actions/configure/...) However, I notice that the form has no ...
1
vote
0answers
125 views

How to set webform value in action while creating rules

I want to set the web form fields value ones certain condition satisfy. Please let me know how i can do this.
1
vote
1answer
96 views

Why are only a few actions available on my triggers page?

I'm customising the content publishing flow of my site using actions and triggers. Unfortunately I've got a problem that not all the actions are show on the triggers page. For example on I have: ...
2
votes
3answers
181 views

Actions - What are objects and context

Can somebody explain to me what the difference is between an object and context within the advanced action setup please. I understand what an object is but am failing to understand what context is. ...
1
vote
0answers
457 views

How do I use hook_action_info() actions with entity_create->save() during bootstrap?

I'm building a standalone script which uses Drupal's bootstrap because I need to render it as a page in an external application (a portal, specifically). The goal is to allow users to register for ...
1
vote
2answers
468 views

What are Hooks, Actions and Triggers in basic terms

In basic terms what are hooks,actions and triggers. My ideas are that hooks allow you to do something when an event takes place and that the "something" is the action. I am having a bit of trouble ...
5
votes
1answer
112 views

Emails sent by actions not using html email formatting

I have the HTML email module and it is working for most site emails, however those that are called by actions/triggers don't use the template. How I can I force this behaviour?
2
votes
1answer
2k views

How to create custom VBO action?

I need to update term references on nodes without updating the "changed" timestamp on the node. If I use VBO with "modify entity values" as action I can update the term reference but it will also ...
2
votes
1answer
3k views

Email all users when a new content is published in Drupal 7

I want to send email notifications whenever a new content is published in the site. It would be helpful if I can do it by Actions - using Actions & Triggers I can use token to mail a single user, ...