You are here

function AnalyticsServiceExportUI::build_operations in Analytics 7

Builds the operation links for a specific exportable item.

Overrides ctools_export_ui::build_operations

File

lib/export_ui/AnalyticsServiceExportUI.class.php, line 24

Class

AnalyticsServiceExportUI

Code

function build_operations($item) {
  $operations = parent::build_operations($item);
  foreach ($operations as $op => $operation) {
    if ($op == 'enable' || $op == 'disable') {
      continue;
    }
    elseif (!$this
      ->access($op, $item)) {
      unset($operations[$op]);
    }
  }
  return $operations;
}