Révision 7e72b748
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/ctools/plugins/content_types/node_context/node_book_menu.inc | ||
---|---|---|
8 | 8 |
$plugin = array( |
9 | 9 |
'single' => TRUE, |
10 | 10 |
'title' => t('Book navigation menu'), |
11 |
'icon' => '../block/icon_core_block_menu.png',
|
|
11 |
'icon' => drupal_get_path('module', 'ctools') . '/plugins/content_types/block/icon_core_block_menu.png',
|
|
12 | 12 |
'description' => t('The book menu belonging to the current book node.'), |
13 | 13 |
'required context' => new ctools_context_required(t('Node'), 'node'), |
14 | 14 |
'category' => t('Node'), |
... | ... | |
16 | 16 |
} |
17 | 17 |
|
18 | 18 |
function ctools_node_book_menu_content_type_render($subtype, $conf, $panel_args, $context) { |
19 |
$node = isset($context->data) ? clone($context->data) : NULL;
|
|
19 |
$node = isset($context->data) ? clone $context->data : NULL;
|
|
20 | 20 |
$block = new stdClass(); |
21 | 21 |
$block->module = 'book_menu'; |
22 | 22 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules