function party_plugin_display_party_piece::execute_hook_party_party_pieces in Party 8.2
Same name and namespace in other branches
- 7 includes/views/party_plugin_display_party_piece.inc \party_plugin_display_party_piece::execute_hook_party_party_pieces()
Returns items for hook_party_party_pieces().
This is the same pattern as the block display plugin uses. It's neat ;)
File
- includes/
views/ party_plugin_display_party_piece.inc, line 133 - Views plugin for party pieces.
Class
- party_plugin_display_party_piece
- @file Views plugin for party pieces.
Code
function execute_hook_party_party_pieces() {
$key = $this
->get_option('party_piece_path');
// Build a piece to return.
// Note that access settings are handled by party_party_party_pieces().
$pieces = array(
$key => array(
'title' => $this
->get_option('party_piece_label'),
'page callback' => 'party_page_view_piece_views',
// We need to be able to find this view in the page callback.
'page arguments' => array(
1,
$this->view->name,
$this->display->id,
),
'file' => 'party.pages.inc',
// Add a key to say we came from a dataset. This is then handled by
// party_party_party_pieces() which in turn enables local tasks for
// adding entities within this set in party_menu_local_tasks_alter().
'data_set' => $this->options['data_set'],
),
);
return $pieces;
}