1 layout_test.module layout_test_theme_registry_alter(&$theme_registry)

Implements hook_theme_registry_alter().

Ensure the flexible layout template is registered, whether or not it is being used in core layouts.

File

core/modules/layout/tests/layout_test/layout_test.module, line 185
Layout test module.

Code

function layout_test_theme_registry_alter(&$theme_registry) {
  if (!isset($theme_registry['layout__flexible'])) {
    $theme_registry['layout__flexible'] = array(
      'variables' => array(
        'content' => NULL,
        'settings' => NULL,
        'layout' => NULL,
        'layout_template_info' => NULL,
        'renderer' => NULL,
        'attributes' => array(),
        'admin' => FALSE,
      ),
      'template' => 'layout--flexible',
      'path' => backdrop_get_path('module', 'layout') . '/templates',
      'theme path' => backdrop_get_path('module', 'layout') . '/templates',
      'type' => 'module',
      'base hook' => 'layout',
    );
  }
}