annotate vendor/chi-teck/drupal-code-generator/templates/d7/hook/action_info.twig @ 5:12f9dff5fda9
tip
Update to Drupal core 8.7.1
author |
Chris Cannam |
date |
Thu, 09 May 2019 15:34:47 +0100 |
parents |
c75dbcec494b |
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 }
|