You are here

function countries_load in Countries 8

Same name and namespace in other branches
  1. 7.2 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.

1 call to countries_load()
countries_import_bulk_import_form_submit in modules/countries_import/countries_import.admin.inc

File

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

Code

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