You are here

function getlocations_entity_type_load in Get Locations 7.2

Same name and namespace in other branches
  1. 7 getlocations.module \getlocations_entity_type_load()

sanity check on entity type

Parameters

string $arg Entity type.:

Return value

argument or FALSE

File

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

Code

function getlocations_entity_type_load($arg) {
  if (getlocations_check_entity_type($arg)) {
    return $arg;
  }
  return FALSE;
}