1 layout.class.inc Layout::disable()

Disable a layout.

File

core/modules/layout/includes/layout.class.inc, line 441
Class for loading, modifying, and executing a layout.

Class

Layout
@file Class for loading, modifying, and executing a layout.

Code

function disable() {
  $this->disabled = TRUE;
  $this->save();

  // Reassign the menu item to a still-enabled layout (if any).
  if ($this->menu_item && $this->menu_item->name === $this->name) {
    $this->menu_item->reassign();
  }
  $this->invokeHook('disable');
}