views_plugin_argument_validate_numeric.inc

Same filename in other branches
  1. 6.x-3.x plugins/views_plugin_argument_validate_numeric.inc

Definition of views_plugin_argument_validate_numeric.

File

plugins/views_plugin_argument_validate_numeric.inc

View source
<?php


/**
 * @file
 * Definition of views_plugin_argument_validate_numeric.
 */

/**
 * Validate whether an argument is numeric or not.
 *
 * @ingroup views_argument_validate_plugins
 */
class views_plugin_argument_validate_numeric extends views_plugin_argument_validate {
    
    /**
     * {@inheritdoc}
     */
    public function validate_argument($argument) {
        return is_numeric($argument);
    }

}

Classes

Title Deprecated Summary
views_plugin_argument_validate_numeric Validate whether an argument is numeric or not.