| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @file 4 * Contains the numeric argument validator plugin. 5 */ 6 7 /** 8 * Validate whether an argument is numeric or not. 9 * 10 * @ingroup views_argument_validate_plugins 11 */ 12 class views_plugin_argument_validate_numeric extends views_plugin_argument_validate { 13 var $option_name = 'validate_argument_numeric'; 14 15 /** 16 * Only let users with PHP block visibility permissions set/modify this 17 * validate plugin. 18 */ 19 function access() { 20 return !empty($this->argument->definition['numeric']); 21 } 22 23 function validate_argument($argument) { 24 return is_numeric($argument); 25 } 26 } 27
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |