root / drupal7 / sites / all / modules / views / plugins / views_plugin_argument_validate_numeric.inc @ 5d12d676
1 |
<?php |
---|---|
2 |
|
3 |
/** |
4 |
* @file |
5 |
* Definition of views_plugin_argument_validate_numeric. |
6 |
*/ |
7 |
|
8 |
/** |
9 |
* Validate whether an argument is numeric or not. |
10 |
* |
11 |
* @ingroup views_argument_validate_plugins |
12 |
*/ |
13 |
class views_plugin_argument_validate_numeric extends views_plugin_argument_validate { |
14 |
|
15 |
/** |
16 |
* {@inheritdoc} |
17 |
*/ |
18 |
public function validate_argument($argument) { |
19 |
return is_numeric($argument); |
20 |
} |
21 |
|
22 |
} |