1 update.compare.inc _update_build_layout_data()

Helper function to scan and collect layout data.

Return value

An associative array of layout information.:

File

core/modules/update/update.compare.inc, line 88
Code required only when comparing available updates to existing data.

Code

function _update_build_layout_data() {
  $layout_data = layout_get_layout_template_info();
  foreach ($layout_data as $layout) {
    $name = $layout['name'];
    $layouts[$name] = new stdClass();
    $layouts[$name]->name = $name;
    $layouts[$name]->uri = $layout['path'] . '/' . $name . '.info';
    $layouts[$name]->info = $layout;
    $layouts[$name]->status = 1;
  }
  return $layouts;
}