You are here

function popup_onload_rules_event_info in Popup On Load 7

Implements hook_rules_event_info().

File

./popup_onload.rules.inc, line 11
Rules-related hooks and functions.

Code

function popup_onload_rules_event_info() {
  return [
    'popup_onload_event_choose_popup' => [
      'label' => t('There is a popup to display'),
      'group' => t('Popup On Load'),
      'variables' => [
        'popup_onload' => [
          'label' => t('popup-on-load entity'),
          'type' => 'popup_onload',
          'access callback' => 'popup_onload_integration_access',
        ],
      ],
    ],
  ];
}