Skip to content
Snippets Groups Projects
Commit fc5e4c5b authored by Viktor Holovachek's avatar Viktor Holovachek
Browse files

Issue #3471134 - Add api file

parent 12ccba63
No related branches found
No related tags found
1 merge request!9Issue #3471134 - Add api file
<?php
/**
* @file
* Describe hooks provided by the Form API Validation module.
*/
/**
* Provides a list of filters.
*
* @return
* An array of filters and their callbacks.
*/
function hook_fapi_validation_filters() {
return array(
'custom' => array(
'callback' => 'custom_filter_callback',
),
);
}
/**
* Provides a list of rules.
*
* @return
* An array of rules and their callbacks.
*/
function hook_fapi_validation_rules() {
return array(
'custom' => array(
'callback' => 'custom_rule_callback',
'error_msg' => '%field value is invalid.',
),
);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment