root / drupal7 / sites / all / modules / views / plugins / views_plugin_argument_validate_numeric.inc @ a45e4bc1
1 | 85ad3d82 | Assos Assos | <?php |
---|---|---|---|
2 | |||
3 | /** |
||
4 | * @file |
||
5 | * Contains the numeric argument validator plugin. |
||
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 | function validate_argument($argument) { |
||
15 | return is_numeric($argument); |
||
16 | } |
||
17 | } |