views_plugin_argument_validate_numeric.inc

  1. 3.x plugins/views_plugin_argument_validate_numeric.inc
  2. 2.x plugins/views_plugin_argument_validate_numeric.inc

Contains the numeric argument validator plugin.

File

plugins/views_plugin_argument_validate_numeric.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Contains the numeric argument validator plugin.
  5. */
  6. /**
  7. * Validate whether an argument is numeric or not.
  8. *
  9. * @ingroup views_argument_validate_plugins
  10. */
  11. class views_plugin_argument_validate_numeric extends views_plugin_argument_validate {
  12. function validate_argument($argument) {
  13. return is_numeric($argument);
  14. }
  15. }