Révision 1e39edcb
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/ctools/plugins/content_types/node_context/node_book_nav.inc | ||
---|---|---|
7 | 7 |
*/ |
8 | 8 |
$plugin = array( |
9 | 9 |
'single' => TRUE, |
10 |
'title' => t('Book navigation'), |
|
11 |
'icon' => 'icon_node.png',
|
|
12 |
'description' => t('The navigation menu the book the node belongs to.'),
|
|
10 |
'title' => t('Book navigation pager'),
|
|
11 |
'icon' => '../block/icon_core_booknavigation.png',
|
|
12 |
'description' => t('The navigational pager and sub pages of the current book node.'),
|
|
13 | 13 |
'required context' => new ctools_context_required(t('Node'), 'node'), |
14 | 14 |
'category' => t('Node'), |
15 | 15 |
); |
... | ... | |
20 | 20 |
$block = new stdClass(); |
21 | 21 |
$block->module = 'book_nav'; |
22 | 22 |
|
23 |
$block->title = t('Book navigation'); |
|
23 |
$block->title = t('Book navigation pager');
|
|
24 | 24 |
if ($node) { |
25 | 25 |
$block->content = isset($node->book) ? theme('book_navigation', array('book_link' => $node->book)) : ''; |
26 | 26 |
$block->delta = $node->nid; |
27 | 27 |
} |
28 | 28 |
else { |
29 |
$block->content = t('Book navigation goes here.'); |
|
29 |
$block->content = t('Book navigation pager goes here.');
|
|
30 | 30 |
$block->delta = 'unknown'; |
31 | 31 |
} |
32 | 32 |
|
... | ... | |
34 | 34 |
} |
35 | 35 |
|
36 | 36 |
function ctools_node_book_nav_content_type_admin_title($subtype, $conf, $context) { |
37 |
return t('"@s" book navigation', array('@s' => $context->identifier)); |
|
37 |
return t('"@s" book navigation pager', array('@s' => $context->identifier));
|
|
38 | 38 |
} |
39 | 39 |
|
40 | 40 |
function ctools_node_book_nav_content_type_edit_form($form, &$form_state) { |
Formats disponibles : Unified diff
Weekly update of contrib modules