Révision a2baadd1
Ajouté par Assos Assos il y a environ 10 ans
drupal7/sites/all/modules/print/print.module | ||
---|---|---|
263 | 263 |
* Implements hook_block_view(). |
264 | 264 |
*/ |
265 | 265 |
function print_block_view($delta = '') { |
266 |
$block = array(); |
|
267 |
|
|
266 | 268 |
switch ($delta) { |
267 | 269 |
case 'print-links': |
268 | 270 |
$nid = preg_replace('!^node/!', '', $_GET['q']); |
... | ... | |
465 | 467 |
*/ |
466 | 468 |
function print_node_update($node) { |
467 | 469 |
if (user_access('administer print') || user_access('node-specific print configuration')) { |
468 |
if (!isset($node->print_display)) $node->print_display = variable_get('print_display_' . $node->type, PRINT_TYPE_SHOW_LINK_DEFAULT); |
|
469 |
if (!isset($node->print_display_comment)) $node->print_display_comment = variable_get('print_display_comment_' . $node->type, PRINT_TYPE_COMMENT_LINK_DEFAULT); |
|
470 |
if (!isset($node->print_display_urllist)) $node->print_display_urllist = variable_get('print_display_urllist_' . $node->type, PRINT_TYPE_URLLIST_DEFAULT); |
|
470 |
if (!isset($node->print_display) || $node->print_display === NULL) { |
|
471 |
$node->print_display = variable_get('print_display_' . $node->type, PRINT_TYPE_SHOW_LINK_DEFAULT); |
|
472 |
} |
|
473 |
if (!isset($node->print_display_comment) || $node->print_display_comment === NULL) { |
|
474 |
$node->print_display_comment = variable_get('print_display_comment_' . $node->type, PRINT_TYPE_COMMENT_LINK_DEFAULT); |
|
475 |
} |
|
476 |
if (!isset($node->print_display_urllist) || $node->print_display_urllist === NULL) { |
|
477 |
$node->print_display_urllist = variable_get('print_display_urllist_' . $node->type, PRINT_TYPE_URLLIST_DEFAULT); |
|
478 |
} |
|
471 | 479 |
|
472 | 480 |
_print_node_conf_modify($node->nid, $node->print_display, $node->print_display_comment, $node->print_display_urllist); |
473 | 481 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules