18 lines
350 B
PHP
18 lines
350 B
PHP
<?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 {
|
|
function validate_argument($argument) {
|
|
return is_numeric($argument);
|
|
}
|
|
}
|