actions

Events happening in the community are now at Drupal community events on www.drupal.org.
TechSteve's picture

Create an Action for a Trigger

Hi Experts,

I am an experienced PHP programmer but a litter bit new to Drupal.

I have created a new content type and set a trigger for a new post, but I don't know where to place the action scripts so that the trigger could be automatically handled. This content type is pretty simple, so I guess it may not be worth to write a module. I am not sure it's a normal way to deal with triggers and actions. Hope you experts could give me some hints, and any suggestions are welcomed. Thanks!

BTW, I'm using Drupal 6.4.

Cheers,
Steve

Read more
carlitus's picture

Create new actions for Imagecache

The imagecache module is awesome now but it has only 3 actions: scale, resize and crop. My proposal for SoC is use imagecache 2.0 and the hook_imagecache_action (http://www.darrelopry.com/story/imagecache-2x-beta) to create new actions like:

  • Watermark
  • Rounded corners
  • Borders
  • Insert text
  • Insert image
  • Rotate
  • And so on

There are a lot of new possible actions, you can go to imagemagick options for more action examples: http://www.imagemagick.org/script/command-line-options.php

Read more
keesee's picture

Changing states through links.

I am attempting to set up a node type that has 4 workflow states associated to it. What I would like to do is include links or linked images images and via the link, can be clicked on to change that node to that state. The idea is to keep users from having to click workflow and then change the state. These states will not change, so I don't mind hardcoding links into the node template and using node id as a dynamic variable in the url. Is this possible? I think that this would be a great usability enhancement to Workflows aswell. thanks in advance. Jimmy

Read more
aaron's picture

Actions Module and RPG

I recently became reacquainted with the Actions module, and realized that it might be a good hook for RPG actions, rather than reinventing the wheel. So this week I'm studying that (and the workflow module), to see how it might work. I would need to create the basic RPG actions and the admin UI, but I think it would work.

Aaron Winborn
Drupal RPG, home of the RPG module.
Spindowners, an upcoming text-based rpg being developed with the RPG Module for Drupal.

Read more
Artem's picture

*Periodically* scheduled actions sometimes resulting in the state transitions

Hi

Could anybody, please, tell if workflow module can be used for doing/checking things periodically and making a state transition basing on the check results?

Read more
eaton's picture

A quick tour of VotingAPI actions integration

Right now, SimpleVote is the best example of how an external module can hook into VotingAPI's action functionality. I'm writing up more detailed docs on how it works internally, but for now let's take a quick tour. First, there's hook_votingapi_action_sets(), a hook that any module can implement to return a collection of 'action sets' for consideration whenever a vote result is processed.

Each action set includes some key information:

  1. Meta-data, like name and description
  2. Some behavioral data, like whether ALL of its conditions must be true or only ONE,
  3. A set of 'condition' records that are evaluated
  4. A set of 'actions' that are executed if the conditions are satisfied
Read more
eaton's picture

VotingAPI and actions: Major improvements

One of the major VotingAPI improvements that's been in the pipeline for a while is an overhaul of integration with the Actions module. At present, the voting_actions module is used to set up specific vote results that will trigger things like promoting a node to the front page, or unpublishing it. There are some problems with the approach, though. First, there was no way for module authors to provide 'built-in' voting actions. Everything had to be set up by users. Second, there was no way to make decisions about action execution based on the content rather than the vote. In other words, polls need 10 votes to be promoted, but stories need 15. Third, there's really no reason that the functionality should be in a separate module -- actions integration should be exposed as an API for module writers, and should be tweakable by users who want more customization. It's a bit like the Views module philosophy: modules can expose default bviews, but users can make their own or override the defaults. To that end, the new VotingAPI actions system has been re-written. All the core code IS present, though the end-user UI for creating and overriding actions is still being written.

Read more
Subscribe with RSS Syndicate content