1.20.x layout_menu_item.class.inc LayoutMenuItem::revert()

Revert a menu item back to its module-provided default.

File

modules/layout/includes/layout_menu_item.class.inc, line 190
Class for storing information about menu item entries.

Class

LayoutMenuItem
@file Class for storing information about menu item entries.

Code

function revert() {
  if ($this->module) {
    config_install_default_config($this->module, 'layout.menu_item.' . $this->name);
    layout_reset_caches();
    menu_rebuild();
  }
}