Pull merge.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / action_info.twig
1 /**
2  * Implements hook_action_info().
3  */
4 function {{ machine_name }}_action_info() {
5   return array(
6     'comment_unpublish_action' => array(
7       'type' => 'comment',
8       'label' => t('Unpublish comment'),
9       'configurable' => FALSE,
10       'behavior' => array('changes_property'),
11       'triggers' => array('comment_presave', 'comment_insert', 'comment_update'),
12     ),
13     'comment_unpublish_by_keyword_action' => array(
14       'type' => 'comment',
15       'label' => t('Unpublish comment containing keyword(s)'),
16       'configurable' => TRUE,
17       'behavior' => array('changes_property'),
18       'triggers' => array('comment_presave', 'comment_insert', 'comment_update'),
19     ),
20     'comment_save_action' => array(
21       'type' => 'comment',
22       'label' => t('Save comment'),
23       'configurable' => FALSE,
24       'triggers' => array('comment_insert', 'comment_update'),
25     ),
26   );
27 }