You are here

function hook_party_party_pieces in Party 8.2

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

Defines party pieces, that is, components of the party display.

Return value

An array of items suitable for hook_menu(), where each key is the subpath below 'party/%party/view'. A number of defaults will be added by party_menu().

2 functions implement hook_party_party_pieces()

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

party_party_party_pieces in ./party.module
Implements hook_party_party_pieces().
party_plugin_display_party_piece::execute_hook_party_party_pieces in includes/views/party_plugin_display_party_piece.inc
Returns items for hook_party_party_pieces().
1 invocation of hook_party_party_pieces()
party_get_party_piece_info in ./party.module
Get all party piece definitions from hook_party_party_pieces().

File

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

Code

function hook_party_party_pieces() {
  return array(
    'party' => array(
      'title' => 'View',
      'page callback' => 'party_page_view',
      'page arguments' => array(
        1,
      ),
      'file' => 'party.pages.inc',
      'access arguments' => array(
        'view contacts',
      ),
      'type' => MENU_DEFAULT_LOCAL_TASK,
      'weight' => -10,
    ),
  );
}