123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
- function hook_trigger_info() {
- return array(
- 'node' => array(
- 'node_presave' => array(
- 'label' => t('When either saving new content or updating existing content'),
- ),
- 'node_insert' => array(
- 'label' => t('After saving new content'),
- ),
- 'node_update' => array(
- 'label' => t('After saving updated content'),
- ),
- 'node_delete' => array(
- 'label' => t('After deleting content'),
- ),
- 'node_view' => array(
- 'label' => t('When content is viewed by an authenticated user'),
- ),
- ),
- );
- }
- function hook_trigger_info_alter(&$triggers) {
- $triggers['node']['node_insert']['label'] = t('When content is saved');
- }
|