You are here

function hook_ctools_plugin_directory in Clientside Validation 7.2

Some modules allow users to define extra validation rules defined in a hook. (e.g hook_webform_validation_validators()). To support these custom rules, you must implement a ctools plugin.

Just implement hook_ctools_plugin_directory so Clientside Validation knows where to find the plugins. There are a lot of good examples in the clientside_validation_forms module. All plugin classes must extend the ClientsideValidationValidator class provided by the Clientside Validation module.

15 functions implement hook_ctools_plugin_directory()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

clientside_validation_captcha_ctools_plugin_directory in clientside_validation_captcha/clientside_validation_captcha.module
Implements hook_ctools_plugin_directory().
clientside_validation_ctools_plugin_directory in ./clientside_validation.module
Implements hook_ctools_plugin_directory().
clientside_validation_date_ctools_plugin_directory in clientside_validation_date/clientside_validation_date.module
Implements hook_ctools_plugin_directory().
clientside_validation_elements_ctools_plugin_directory in clientside_validation_elements/clientside_validation_elements.module
Implements hook_ctools_plugin_directory().
clientside_validation_email_ctools_plugin_directory in clientside_validation_email/clientside_validation_email.module
Implements hook_ctools_plugin_directory().

... See full list

File

./clientside_validation.api.php, line 18
This is the api documentation for clientside validation hooks.

Code

function hook_ctools_plugin_directory($module, $plugin) {
  if ($module == 'clientside_validation') {
    return 'plugins/' . $plugin;
  }
}