You are here

function getlocations_cdints_load in Get Locations 7

Same name and namespace in other branches
  1. 6.2 getlocations.module \getlocations_cdints_load()
  2. 6 getlocations.module \getlocations_cdints_load()
  3. 7.2 getlocations.module \getlocations_cdints_load()

sanity check on list of nids

Parameters

int $arg:

Return value

argument or FALSE

File

./getlocations.module, line 248
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_cdints_load($arg) {
  $arr = explode(',', $arg);
  foreach ($arr as $a) {
    if (!is_numeric($a) || $a < 1) {
      return FALSE;
    }
  }
  return $arg;
}