You are here

function config_pages_config in Config Pages 7

Same name and namespace in other branches
  1. 8.3 config_pages.module \config_pages_config()
  2. 8 config_pages.module \config_pages_config()
  3. 8.2 config_pages.module \config_pages_config()

Returns config pages metawrapper.

File

./config_pages.inc, line 111
Logic functions.

Code

function config_pages_config($type, $context = NULL) {
  $config_entity = config_pages_load_entity($type, $context);
  if ($config_entity) {
    $wrapper = entity_metadata_wrapper('config_pages', $config_entity);
  }
  else {
    $wrapper = NULL;
  }
  return $wrapper;
}