Functions that perform an action on a certain system object.
Action functions are declared by modules by implementing hook_action_info(). Modules can cause action functions to run by calling actions_do(), and trigger.module provides a user interface that lets administrators define events that cause action functions to run.
Each action function takes two to four arguments:
Name | Location | Description |
---|---|---|
user_block_user_action |
drupal/ |
Blocks a specific user or the current user, if one is not specified. |
system_send_email_action |
drupal/ |
Sends an e-mail message. |
system_message_action |
drupal/ |
Sends a message to the current user's screen. |
system_goto_action |
drupal/ |
Redirects to a different URL. |
system_block_ip_action |
drupal/ |
Blocks the current user's IP address. |
node_unpublish_by_keyword_action |
drupal/ |
Unpublishes a node containing certain keywords. |
node_unpublish_action |
drupal/ |
Sets the status of a node to 0 (unpublished). |
node_unpromote_action |
drupal/ |
Sets the promote property of a node to 0. |
node_save_action |
drupal/ |
Saves a node. |
node_publish_action |
drupal/ |
Sets the status of a node to 1 (published). |
node_promote_action |
drupal/ |
Sets the promote property of a node to 1. |
node_make_unsticky_action |
drupal/ |
Sets the sticky-at-top-of-list property of a node to 0. |
node_make_sticky_action |
drupal/ |
Sets the sticky-at-top-of-list property of a node to 1. |
node_assign_owner_action |
drupal/ |
Assigns ownership of a node to a user. |
hook_action_info |
drupal/ |
Declares information about actions. |
comment_unpublish_by_keyword_action |
drupal/ |
Unpublishes a comment if it contains certain keywords. |
comment_unpublish_action |
drupal/ |
Unpublishes a comment. |
comment_save_action |
drupal/ |
Saves a comment. |
comment_publish_action |
drupal/ |
Publishes a comment. |
actions_do |
drupal/ |
Performs a given list of actions by executing their callback functions. |