You are here

function config_pages_load in Config Pages 7

Fetch a config_pages object. Make sure that the wildcard you choose in the config_pages entity definition fits the function name here.

Parameters

$config_pages_id: Integer specifying the config_pages id.

$reset: A boolean indicating that the internal cache should be reset.

Return value

A fully-loaded $config_pages object or FALSE if it cannot be loaded.

See also

config_pages_load_multiple()

File

./config_pages.module, line 377
This module is based on Model module (https://drupal.org/project/model) and most of the comments left untouched but have entity types renamed. Suuport for features added.

Code

function config_pages_load($config_pages_id, $reset = FALSE) {
  $config_pagess = config_pages_load_multiple(array(
    $config_pages_id,
  ), array(), $reset);
  return reset($config_pagess);
}