You are here

protected function GroupRoleUIController::roleOperations in Group 7

Returns the available operations for the page.

2 calls to GroupRoleUIController::roleOperations()
GroupRoleUIController::roleTableHeaders in classes/group_role.ui_controller.inc
Generates the table headers for the role table.
GroupRoleUIController::roleTableRow in classes/group_role.ui_controller.inc
Generates the row for the passed role.

File

classes/group_role.ui_controller.inc, line 209
Defines the Entity API UI class for group roles.

Class

GroupRoleUIController
UI class for group roles.

Code

protected function roleOperations() {
  $ops = array();

  // Entity status and export column for global roles.
  if ($this->global_ui) {
    $ops[] = 'status';
    if (!empty($this->entityInfo['exportable'])) {
      $ops[] = 'export';
    }
  }

  // Edit, clone and delete/revert links only show when we are viewing the
  // global UI or the roles for a non-fixed group type.
  if ($this->tabledrag) {
    array_push($ops, 'edit', 'clone', 'delete');
  }

  // Translate links should always be available, regardless of context or
  // whether or not the entity has a fixed status.
  if (module_exists('i18n_string')) {
    $ops[] = 'translate';
  }
  return $ops;
}