protected function GroupMembershipUIController::profileOperations in Group 7
Returns the available operations for the page.
1 call to GroupMembershipUIController::profileOperations()
- GroupMembershipUIController::profileTableHeaders in classes/
group_membership.ui_controller.inc - Generates the table headers for the type table.
File
- classes/
group_membership.ui_controller.inc, line 215 - Defines the Entity API UI class for group memberships.
Class
- GroupMembershipUIController
- UI class for group memberships.
Code
protected function profileOperations() {
$field_ui = module_exists('field_ui');
// If only the default profile exists, return just Field UI operations.
if ($this->profile_count == 1) {
return $field_ui ? array(
'manage fields',
'manage display',
) : array();
}
$ops = array(
'edit',
);
if ($field_ui) {
array_push($ops, 'manage fields', 'manage display');
}
if (module_exists('i18n_string')) {
$ops[] = 'translate';
}
array_push($ops, 'clone', 'delete', 'export');
return $ops;
}