You are here

function webform_validation_manage in Webform Validation 7

Same name and namespace in other branches
  1. 6 webform_validation.admin.inc \webform_validation_manage()

Menu callback function.

Shows an overview of the existing validation rules and the option to add a rule.

1 string reference to 'webform_validation_manage'
webform_validation_menu in ./webform_validation.module
Implements hook_menu().

File

./webform_validation.admin.inc, line 14
Manages validation rules administration UI.

Code

function webform_validation_manage($node) {
  $rules = webform_validation_get_node_rules($node->nid);
  $output = array();
  $output['webform_validation_manage_overview_form'] = drupal_get_form('webform_validation_manage_overview_form', $rules, $node);
  $output['webform_validation_manage_add_rule'] = array(
    '#theme' => 'webform_validation_manage_add_rule',
    '#nid' => $node->nid,
  );
  return $output;
}