Implementation of hook_rules_event_info()

Public

Implementation of hook_rules_event_info()

Get raw version
php
  1. /**
  2.  * Implements hook_rules_event_info().
  3.  */
  4. function MYMODULE_custom_rules_event_info() {
  5. $defaults = array(
  6. 'group' => t('Group Label for Rules'),
  7. 'module' => 'MYMODULE',
  8. );
  9. return array(
  10. 'some_task_finished' => $defaults + array(
  11. 'label' => t('After finishing a task'),
  12. 'variables' => array(
  13. 'email' => array('type' => 'text', 'label' => t('Email')),
  14. 'username' => array('type' => 'text', 'label' => t('User Name')),
  15. ),
  16. ),
  17. );
  18. }