| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: views_plugin_argument_validate_numeric.inc,v 1.1 2008/09/03 19:21:30 merlinofchaos Exp $ 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 var $option_name = 'validate_argument_numeric'; 15 16 /** 17 * Only let users with PHP block visibility permissions set/modify this 18 * validate plugin. 19 */ 20 function access() { 21 return !empty($this->argument->definition['numeric']); 22 } 23 24 function validate_argument($argument) { 25 return is_numeric($argument); 26 } 27 } 28
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |