You are here

function getlocations_id_load in Get Locations 7

Same name and namespace in other branches
  1. 6.2 getlocations.module \getlocations_id_load()
  2. 6 getlocations.module \getlocations_id_load()
  3. 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;
}