function views_ui::hook_menu

Overrides ctools_export_ui::hook_menu

File

plugins/export_ui/views_ui.class.php, line 53

Class

views_ui
CTools Export UI class handler for Views UI.

Code

public function hook_menu(&$items) {
    // We are using our own 'edit' still, rather than having edit on this
    // object (maybe in the future) so unset the edit callbacks. Store this so
    // we can put them back as sometimes they're needed again laster.
    $stored_items = $this->plugin['menu']['items'];
    // We leave these to make sure the operations still exist in the plugin so
    // that the path finder.
    unset($this->plugin['menu']['items']['edit']);
    unset($this->plugin['menu']['items']['add']);
    unset($this->plugin['menu']['items']['import']);
    unset($this->plugin['menu']['items']['edit callback']);
    parent::hook_menu($items);
    $this->plugin['menu']['items'] = $stored_items;
}