You are here

function webform_validation_get_vars in Webform Validation 6

Get variables based on the installed version of Webform module

5 calls to webform_validation_get_vars()
theme_webform_validation_manage_add_rule in ./webform_validation.module
Theme the 'add rule' list
theme_webform_validation_manage_overview in ./webform_validation.admin.inc
Themable function to list the rules assigned to a webform
webform_validation_get_webform_rules in ./webform_validation.admin.inc
Get the list of rules associated with the webform
webform_validation_menu in ./webform_validation.module
Implementation of hook_menu().
webform_validation_nodeapi in ./webform_validation.module
Implementation of hook_nodeapi().

File

./webform_validation.module, line 299

Code

function webform_validation_get_vars() {
  $version = webform_validation_check_version();
  switch ($version) {
    case 2:
      return array(
        'path_suffix' => 'edit',
        'webform_contenttypes' => array(
          'webform',
        ),
      );
      break;
    case 3:
      return array(
        'path_suffix' => 'webform',
        'webform_contenttypes' => webform_variable_get('webform_node_types'),
      );
      break;
  }
}