Mercurial > hg > cmmr2012-drupal-site
annotate vendor/chi-teck/drupal-code-generator/templates/d7/hook/action_info.twig @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
rev | line source |
---|---|
Chris@0 | 1 /** |
Chris@0 | 2 * Implements hook_action_info(). |
Chris@0 | 3 */ |
Chris@0 | 4 function {{ machine_name }}_action_info() { |
Chris@0 | 5 return array( |
Chris@0 | 6 'comment_unpublish_action' => array( |
Chris@0 | 7 'type' => 'comment', |
Chris@0 | 8 'label' => t('Unpublish comment'), |
Chris@0 | 9 'configurable' => FALSE, |
Chris@0 | 10 'behavior' => array('changes_property'), |
Chris@0 | 11 'triggers' => array('comment_presave', 'comment_insert', 'comment_update'), |
Chris@0 | 12 ), |
Chris@0 | 13 'comment_unpublish_by_keyword_action' => array( |
Chris@0 | 14 'type' => 'comment', |
Chris@0 | 15 'label' => t('Unpublish comment containing keyword(s)'), |
Chris@0 | 16 'configurable' => TRUE, |
Chris@0 | 17 'behavior' => array('changes_property'), |
Chris@0 | 18 'triggers' => array('comment_presave', 'comment_insert', 'comment_update'), |
Chris@0 | 19 ), |
Chris@0 | 20 'comment_save_action' => array( |
Chris@0 | 21 'type' => 'comment', |
Chris@0 | 22 'label' => t('Save comment'), |
Chris@0 | 23 'configurable' => FALSE, |
Chris@0 | 24 'triggers' => array('comment_insert', 'comment_update'), |
Chris@0 | 25 ), |
Chris@0 | 26 ); |
Chris@0 | 27 } |