function rules_ui_remove_event

Form to remove an event from a rule.

1 string reference to 'rules_ui_remove_event'
RulesUIController::config_menu in ui/ui.controller.inc
Generates menu items to manipulate rules configurations.

File

ui/ui.forms.inc, line 516

Code

function rules_ui_remove_event($form, &$form_state, $rules_config, $event, $base_path) {
    RulesPluginUI::$basePath = $base_path;
    $form_state += array(
        'rules_config' => $rules_config,
        'rules_event' => $event,
    );
    $event_info = rules_get_event_info($event);
    $form_state['event_label'] = $event_info['label'];
    $confirm_question = t('Are you sure you want to remove the event?');
    return confirm_form($form, $confirm_question, RulesPluginUI::path($rules_config->name), t('You are about to remove the event %event.', array(
        '%event' => $form_state['event_label'],
    )), t('Remove'), t('Cancel'));
}