You are here

function hook_party_operations in Party 8.2

Same name and namespace in other branches
  1. 7 party.api.php \hook_party_operations()

Add mass party operations for the Community admin page

This hook allows modules to inject custom operations into the Community admin page. The callback specified receives one argument: an array of the selected party objects.

Return value

An array of operations with keys:

  • "label": Required. The label for the drop down menu.
  • "callback": Required. The function that processes the operation.
  • "callback arguments": Optional. Any extra arguments to be sent to the callback function.
1 function implements hook_party_operations()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

party_party_operations in ./party.module
Implements hook_party_operations.
1 invocation of hook_party_operations()
PartyUIController::actionsForm in includes/party.ui.inc
Builds the actions form.

File

./party.api.php, line 226
Hooks provided by the Party module.

Code

function hook_party_operations() {
  $operations = array(
    'merge' => array(
      'label' => t('Merge parties'),
      'callback' => 'party_party_operations_merge',
    ),
  );
  return $operations;
}