mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Fix example hook_farm_dashboard_panes() implementation.
This commit is contained in:
parent
a14d6a5526
commit
bf4392eda3
1 changed files with 15 additions and 10 deletions
|
@ -30,18 +30,23 @@
|
|||
function hook_farm_dashboard_panes() {
|
||||
return array(
|
||||
|
||||
// Specify a 'view' and 'view_display ID' to automatically load a View.
|
||||
// This will take precedence over 'title' and 'callback' below.
|
||||
'view' => 'my_view',
|
||||
'view_display_id' => 'block_1',
|
||||
// A pane is defined with an associative array, keyed with a unique pane
|
||||
// machine name.
|
||||
'my_pane' => array(
|
||||
|
||||
// Specify the title and callback function that produces output.
|
||||
'title' => t('My pane title'),
|
||||
'callback' => 'my_callback_function',
|
||||
// Specify a 'view' and 'view_display ID' to automatically load a View.
|
||||
// This will take precedence over 'title' and 'callback' below.
|
||||
'view' => 'my_view',
|
||||
'view_display_id' => 'block_1',
|
||||
|
||||
// Optionally specify a group and weight for display sorting.
|
||||
'group' => 'custom_group',
|
||||
'weight' => 100,
|
||||
// Specify the title and callback function that produces output.
|
||||
'title' => t('My pane title'),
|
||||
'callback' => 'my_callback_function',
|
||||
|
||||
// Optionally specify a group and weight for display sorting.
|
||||
'group' => 'custom_group',
|
||||
'weight' => 100,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue