You are here

function datalayer_get_page_data in dataLayer 7

Same name and namespace in other branches
  1. 8 datalayer.module \datalayer_get_page_data()

Return all the page meta data.

Return value

array Page data.

1 call to datalayer_get_page_data()
datalayer_preprocess_page in ./datalayer.module
Implements hook_preprocess_HOOK().

File

./datalayer.module, line 204
Client-side data space.

Code

function datalayer_get_page_data() {
  $type = FALSE;
  $obj = _datalayer_menu_get_any_object($type);
  if (is_object($obj) && $type) {

    // @todo Add field data.
    // Populate entity properties and values.
    return _datalayer_get_entity_data($obj, $type);
  }
  return array();
}