You are here

protected function GroupTypeUIController::typeOperations in Group 7

Returns the available operations for the page.

1 call to GroupTypeUIController::typeOperations()
GroupTypeUIController::typeTableHeaders in classes/group_type.ui_controller.inc
Generates the table headers for the type table.

File

classes/group_type.ui_controller.inc, line 203
Defines the Entity API UI class for group types.

Class

GroupTypeUIController
UI class for group types.

Code

protected function typeOperations() {
  $ops = array(
    'edit',
    'config',
  );
  if (module_exists('field_ui')) {
    array_push($ops, 'manage fields', 'manage display');
  }
  if (module_exists('i18n_string')) {
    $ops[] = 'translate';
  }
  array_push($ops, 'clone', 'delete', 'export');
  return $ops;
}