Actions

Functions that perform an action on a certain system object.

All modules should declare their action functions to be in this group and each action function should reference its configuration form, validate, and submit functions using @see. Conversely, form, validate, and submit functions should reference the action function using @see. For examples of this see comment_unpublish_by_keyword_action(), which has the following in its doxygen documentation:

@ingroup actions @see comment_unpublish_by_keyword_action_form(). @see comment_unpublish_by_keyword_action_submit().

End of "defgroup actions".

Functions

NameLocationDescription
comment_publish_actiondrupal/modules/comment/comment.moduleAction to publish a comment.
comment_unpublish_actiondrupal/modules/comment/comment.moduleAction to unpublish a comment.
comment_unpublish_by_keyword_actiondrupal/modules/comment/comment.moduleAction to unpublish a comment if it contains a certain string.

drupal/includes/actions.inc, line 45

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.