1.20.x layout.class.inc | Layout::enable() |
Enable a layout.
File
- modules/
layout/ includes/ layout.class.inc, line 446 - Class for loading, modifying, and executing a layout.
Class
- Layout
- @file Class for loading, modifying, and executing a layout.
Code
function enable() {
$this->disabled = FALSE;
$this->save();
// Check if the menu item needs to be assigned to this layout.
if ($this->menu_item && $this->menu_item->name === $this->name) {
$this->menu_item->reassign();
}
$this->invokeHook('enable');
}