get('plugin.manager.layout'); } /** * Implements hook_theme(). * * Expose all layouts as theme items, so themes can override layout markup. */ function layout_theme($existing, $type, $theme, $path) { $items = array(); foreach (layout_manager()->getDefinitions() as $name => $layout) { $items[$layout['theme']] = array( 'variables' => array('content' => NULL), 'path' => $layout['path'], 'template' => $layout['template'], ); } return $items; }