function getlocations_id_load in Get Locations 7
Same name and namespace in other branches
- 6.2 getlocations.module \getlocations_id_load()
- 6 getlocations.module \getlocations_id_load()
- 7.2 getlocations.module \getlocations_id_load()
check that the argument is numeric
Parameters
int $arg:
Return value
argument or FALSE
File
- ./
getlocations.module, line 223 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_id_load($arg) {
return is_numeric($arg) && $arg > 0 ? $arg : FALSE;
}