function cf_error_not_numeric in Common Functionality 7
Same name and namespace in other branches
- 7.2 modules/cf_1x_compatibility/cf_1x_compatibility.module \cf_error_not_numeric()
Reports that a given argument is supposed to be numeric but is not.
Why: See reason from cf_error_invalid_variable() function.
Parameters
array $function_history: An array of function names, ie: array('0' => 'my_function_name').
string $argument_name: The variable name of the argument in question.
int $severity: (optional) This is passed directly to watchdog and represents the severity of the report.
4 calls to cf_error_not_numeric()
- cf_convert_from_crud in ./
cf.module - Converts the passed argument into an array of multiple booleans.
- cf_http_get_response in modules/
cf_http/ cf_http.module - Reads an http page at the given path and returns an unprocessed response.
- cf_user_get_rids in modules/
cf_user/ cf_user.module - Provide a simple way to get the roles ids for the current or specified user.
- cf_user_has_role in modules/
cf_user/ cf_user.module - Provide a simple way to confirm whether or not a user is in a given role by the role id.
File
- modules/
cf_error/ cf_error.module, line 365
Code
function cf_error_not_numeric($function_history, $argument_name, $severity = WATCHDOG_ERROR) {
cf_error_append_history($function_history, __FUNCTION__);
if ($argument_name == '') {
cf_error_empty_string($function_history, 'argument_name');
}
cf_error_invalid_variable($function_history, $argument_name, "Not a numeric value.", array(), $severity);
}