Ekwe:
Every time I select it as an option for my modules, they do not work anymore. Except I make them inactive.
I keep getting this - invalid jrCore_checktype:
'Invalid jrCore_checktype' means the checktype your trying to use is unknown. Make sure its correct.
The docblock for checktype contains all the options:
Quote:
/**
* Test a value to see if it is of a specific "type"
*
* The jrCore_checktype function is used for variable validation to ensure
* a given variable is of the requested "type". Valid types are:
*
* * allowed_html - Ensures value is a string and is allowed to contain HTML allowed in the profile's quota
* * core_string - the numbers 0-9, letters a-z and _ (underscore)
* * date - a valid date
* * domain - a valid domain name (no www)
* * email - a valid email address
* * float - a floating point number
* * hex - a hexidecimal value
* * ip_address - a valid IP Address
* * is_true - boolean TRUE or int or string "1"
* * md5 - valid 32 character long MD5 hash
* * multi_word - a string with more than 1 word
* * not_empty - a string of any length
* * number - an integer
* * number_nn - an integer greater than or equal to zero (0)
* * number_nz - an integer greater than or equal to one (1)
* * onoff - either "on" or "off"
* * price - a price in D.CC format
* * printable - UTF-8 characters with HTML stripped
* * sha1 - a 40 character SHA1 hash
* * string - a string that does not contain HTML or hidden characters
* * url - a valid URL
* * url_name - the numbers 0-9, letters a-z, _ and - (dash)
* * user_name - the numbers 0-9, letters a-z, _ (underscore), - (dash) and spaces
* * file_name - string that can contain a . (dot)
* * yesno - "yes" or "no"
* * json - check if a string is json or not
*
* @param string $input String to test
* @param string $type "Type" to test incoming string against.
* @param bool $desc_only Returns checktype description ONLY if set to true
* @param bool $type_only Returns checktype TYPE ONLY if set to true
*
* @return mixed
*/
updated by @michael: 09/11/14 09:50:39PM