function rules_forms_activate in Rules Forms Support 7
Same name and namespace in other branches
- 7.2 includes/rules_forms.admin.inc \rules_forms_activate()
Activation page for a form ID.
Parameters
string $form_id_activate: The form ID of the form to be activated.
string $form_page: The encoded URI of the page on which the form was activated. This is used for redirecting the user back to that page once activation is completed.
1 string reference to 'rules_forms_activate'
- rules_forms_menu in ./
rules_forms.module - Implements hook_menu().
File
- includes/
rules_forms.admin.inc, line 127 - Administrative forms for Rules Forms module.
Code
function rules_forms_activate($form_id_activate, $form_page) {
$form_info = rules_forms_get_form_info();
if (isset($form_info[$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_confirm_form', $form_id_activate, $form_page);
}