You are here

function merci_core_rules_event_info in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Implementation of hook_rules_event_info().

File

merci_core/merci_core.module, line 26

Code

function merci_core_rules_event_info() {
  $defaults = array(
    'group' => t('MERCI'),
    'module' => 'merci_core',
  );
  return array(
    'merci_validate' => $defaults + array(
      'label' => t('When validating a new MERCI reservation line item'),
      'variables' => array(
        'line_item' => array(
          'type' => 'entity',
          'label' => t('line item'),
        ),
        'reservation' => array(
          'type' => 'entity',
          'label' => t('Parent entity'),
        ),
        'errors' => array(
          'type' => 'struct',
          'label' => t('errors'),
        ),
      ),
    ),
  );
}