Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / trigger_info.twig
1 /**
2  * Implements hook_trigger_info().
3  */
4 function {{ machine_name }}_trigger_info() {
5   return array(
6     'node' => array(
7       'node_presave' => array(
8         'label' => t('When either saving new content or updating existing content'),
9       ),
10       'node_insert' => array(
11         'label' => t('After saving new content'),
12       ),
13       'node_update' => array(
14         'label' => t('After saving updated content'),
15       ),
16       'node_delete' => array(
17         'label' => t('After deleting content'),
18       ),
19       'node_view' => array(
20         'label' => t('When content is viewed by an authenticated user'),
21       ),
22     ),
23   );
24 }