Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/content_types/node_context/node_links.inc | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 | 3 |
/** |
4 |
* @file |
|
4 | 5 |
* Plugins are described by creating a $plugin array which will be used |
5 | 6 |
* by the system that includes this file. |
6 | 7 |
*/ |
8 |
|
|
7 | 9 |
$plugin = array( |
8 | 10 |
'single' => TRUE, |
9 | 11 |
'title' => t('Node links'), |
... | ... | |
32 | 34 |
$node = isset($context->data) ? clone $context->data : NULL; |
33 | 35 |
$block = new stdClass(); |
34 | 36 |
$block->module = 'node'; |
35 |
$block->delta = $node->nid;
|
|
37 |
$block->delta = $node->nid; |
|
36 | 38 |
|
37 | 39 |
if (empty($node)) { |
38 | 40 |
$block->delta = 'placeholder'; |
... | ... | |
102 | 104 |
function ctools_node_links_content_type_admin_title($subtype, $conf, $context) { |
103 | 105 |
return t('"@s" links', array('@s' => $context->identifier)); |
104 | 106 |
} |
105 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules