Chris@0: /** Chris@0: * Implements hook_trigger_info(). Chris@0: */ Chris@0: function {{ machine_name }}_trigger_info() { Chris@0: return array( Chris@0: 'node' => array( Chris@0: 'node_presave' => array( Chris@0: 'label' => t('When either saving new content or updating existing content'), Chris@0: ), Chris@0: 'node_insert' => array( Chris@0: 'label' => t('After saving new content'), Chris@0: ), Chris@0: 'node_update' => array( Chris@0: 'label' => t('After saving updated content'), Chris@0: ), Chris@0: 'node_delete' => array( Chris@0: 'label' => t('After deleting content'), Chris@0: ), Chris@0: 'node_view' => array( Chris@0: 'label' => t('When content is viewed by an authenticated user'), Chris@0: ), Chris@0: ), Chris@0: ); Chris@0: }