Now all modules are in core modules folder
This commit is contained in:
parent
5ba1cdfa0b
commit
05b6a91b0c
1907 changed files with 0 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Contains the numeric argument validator plugin.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Validate whether an argument is numeric or not.
|
||||
*
|
||||
* @ingroup views_argument_validate_plugins
|
||||
*/
|
||||
class views_plugin_argument_validate_numeric extends views_plugin_argument_validate {
|
||||
var $option_name = 'validate_argument_numeric';
|
||||
|
||||
/**
|
||||
* Only let users with PHP block visibility permissions set/modify this
|
||||
* validate plugin.
|
||||
*/
|
||||
function access() {
|
||||
return !empty($this->argument->definition['numeric']);
|
||||
}
|
||||
|
||||
function validate_argument($argument) {
|
||||
return is_numeric($argument);
|
||||
}
|
||||
}
|
||||
|
Reference in a new issue