You are here

function example_action_info in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_upgrade/tests/old/samples/example.module \example_action_info()

Implement hook_action_info().

Use case 1 - returns array directly.

File

coder_upgrade/tests/old/samples/example.module, line 2697

Code

function example_action_info() {
  return array(
    'comment_unpublish_action' => array(
      'description' => t('Unpublish comment'),
      'type' => 'comment',
      'configurable' => FALSE,
      'hooks' => array(
        'comment' => array(
          'insert',
          'update',
        ),
      ),
    ),
    'comment_unpublish_by_keyword_action' => array(
      'description' => t('Unpublish comment containing keyword(s)'),
      'type' => 'comment',
      'configurable' => TRUE,
      'hooks' => array(
        'comment' => array(
          'insert',
          'update',
        ),
        "taxonomy" => array(
          "insert",
          "update",
          "delete",
          "view",
        ),
      ),
    ),
  );
}