You are here

public function SlickUi::build_operations in Slick Carousel 7.2

Overrides parent::build_operations.

Overrides ctools_export_ui::build_operations

File

slick_ui/plugins/export_ui/SlickUi.class.php, line 944
Contains the CTools export UI integration code.

Class

SlickUi
CTools Export UI class handler for Slick UI.

Code

public function build_operations($item) {
  $allowed_operations = parent::build_operations($item);
  if ($item->name == 'default') {
    if (isset($allowed_operations['enable'])) {
      unset($allowed_operations['enable']);
    }
    if (isset($allowed_operations['edit'])) {
      unset($allowed_operations['edit']);
    }
    if (isset($allowed_operations['disable'])) {
      unset($allowed_operations['disable']);
    }
  }
  return $allowed_operations;
}