You are here

function rules_forms_activate in Rules 6

Activation page for a form ID.

1 string reference to 'rules_forms_activate'
rules_forms_menu in rules_forms/rules_forms.module
Implementation of hook_menu().

File

rules_forms/rules_forms.admin.inc, line 76
Implements forms events management screen.

Code

function rules_forms_activate($form_id_activate) {
  $form_events = variable_get('rules_forms_events', array());
  if (isset($form_events[$form_id_activate])) {
    return t('Events for %form_id have already been activated.', array(
      '%form_id' => $form_id_activate,
    ));
  }
  return drupal_get_form('rules_forms_activate_form', $form_id_activate);
}