You are here

layout_plugin.api.php in Layout Plugin (obsolete, use core's Layout Discovery) 8

Hooks provided by the Layout Plugin module.

File

layout_plugin.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the Layout Plugin module.
 */

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Allow modules to alter layout plugin definitions.
 *
 * @param array[] $definitions
 *   The array of layout definitions, keyed by plugin ID.
 */
function hook_layout_alter(&$definitions) {

  // Remove a layout.
  unset($definitions['twocol']);
}

/**
 * @} End of "addtogroup hooks".
 */

Functions

Namesort descending Description
hook_layout_alter Allow modules to alter layout plugin definitions.