function computing_rules_event_info in Drupal Computing 7.2
Implements hook_rules_event_info().
File
- ./
computing.rules.inc, line 7
Code
function computing_rules_event_info() {
$events = array(
'computing_event_created' => array(
'label' => t('A new computing record is created'),
'group' => t('Computing'),
'variables' => array(
'computing_record' => array(
'type' => 'computing_record',
'label' => t('Computing record'),
),
),
),
'computing_event_updated' => array(
'label' => t('A computing record is updated'),
'help' => t('This event is not supposed to work for "claim" and "finish" operations. Use corresponded events instead.'),
'group' => t('Computing'),
'variables' => array(
'computing_record' => array(
'type' => 'computing_record',
'label' => t('Computing record'),
),
),
),
'computing_event_claimed' => array(
'label' => t('A computing record is claimed by agent'),
'group' => t('Computing'),
'variables' => array(
'computing_record' => array(
'type' => 'computing_record',
'label' => t('Computing record'),
),
),
),
'computing_event_finished' => array(
'label' => t('A computing record is finished by agent'),
'group' => t('Computing'),
'variables' => array(
'computing_record' => array(
'type' => 'computing_record',
'label' => t('Computing record'),
),
),
),
'computing_event_released' => array(
'label' => t('A computing record is released back to Drupal'),
'group' => t('Computing'),
'variables' => array(
'computing_record' => array(
'type' => 'computing_record',
'label' => t('Computing record'),
),
),
),
);
return $events;
}