Quantcast
Channel: drupal.org - Site administrators
Viewing all articles
Browse latest Browse all 426

Action: Perform tasks on specific events triggered within the system

$
0
0

The Action module is included in Drupal core. When enabled, the Action module can be used for executing stored actions.

Action functions are declared by modules by implementing hook_action_info().
Modules can cause action functions to run by calling actions_do().

Each action function takes two to four arguments:

  • - $entity: The object that the action acts on, such as a node, comment, or user
  • - $context: Array of additional information about what triggered the action.
  • - $a1, $a2: Optional additional information, which can be passed into actions_do() and will be passed along to the action function.

Uses

Users can:

  • Information Needed

Site administrators can:

  • Information Needed

Issue Queue for 8.x
http://drupal.org/project/issues/drupal?component=action.module&version=8.x


Viewing all articles
Browse latest Browse all 426

Trending Articles