You are here

function countries_load in Countries 7.2

Same name and namespace in other branches
  1. 8 countries.module \countries_load()
  2. 7 countries.module \countries_load()

Load a country entity.

Parameters

int $cid: The country ID.

bool $reset: Whether to reset the countries_load_multiple cache.

Return value

object A country entity or FALSE on failure.

File

./countries.module, line 239
Defines the field and entity information for countries.

Code

function countries_load($cid, $reset = FALSE) {
  return entity_load('country', array(
    $cid,
  ), array(), $reset);
}