annotate vendor/chi-teck/drupal-code-generator/templates/d7/hook/trigger_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_trigger_info().
Chris@0 3 */
Chris@0 4 function {{ machine_name }}_trigger_info() {
Chris@0 5 return array(
Chris@0 6 'node' => array(
Chris@0 7 'node_presave' => array(
Chris@0 8 'label' => t('When either saving new content or updating existing content'),
Chris@0 9 ),
Chris@0 10 'node_insert' => array(
Chris@0 11 'label' => t('After saving new content'),
Chris@0 12 ),
Chris@0 13 'node_update' => array(
Chris@0 14 'label' => t('After saving updated content'),
Chris@0 15 ),
Chris@0 16 'node_delete' => array(
Chris@0 17 'label' => t('After deleting content'),
Chris@0 18 ),
Chris@0 19 'node_view' => array(
Chris@0 20 'label' => t('When content is viewed by an authenticated user'),
Chris@0 21 ),
Chris@0 22 ),
Chris@0 23 );
Chris@0 24 }