Révision a2baadd1
Ajouté par Assos Assos il y a environ 10 ans
drupal7/sites/all/modules/print/print_mail/print_mail.module | ||
---|---|---|
145 | 145 |
* Implements hook_block_view(). |
146 | 146 |
*/ |
147 | 147 |
function print_mail_block_view($delta = 0) { |
148 |
$block = array(); |
|
149 |
|
|
148 | 150 |
switch ($delta) { |
149 | 151 |
case 'print_mail-top': |
150 | 152 |
$block['subject'] = t('Most emailed'); |
... | ... | |
278 | 280 |
*/ |
279 | 281 |
function print_mail_node_update($node) { |
280 | 282 |
if (user_access('administer print') || user_access('node-specific print configuration')) { |
281 |
if (!isset($node->print_mail_display)) $node->print_mail_display = variable_get('print_mail_display_' . $node->type, PRINT_TYPE_SHOW_LINK_DEFAULT); |
|
282 |
if (!isset($node->print_mail_display_comment)) $node->print_mail_display_comment = variable_get('print_mail_display_comment_' . $node->type, PRINT_TYPE_COMMENT_LINK_DEFAULT); |
|
283 |
if (!isset($node->print_mail_display_urllist)) $node->print_mail_display_urllist = variable_get('print_mail_display_urllist_' . $node->type, PRINT_TYPE_URLLIST_DEFAULT); |
|
283 |
if (!isset($node->print_mail_display) || $node->print_mail_display === NULL) { |
|
284 |
$node->print_mail_display = variable_get('print_mail_display_' . $node->type, PRINT_TYPE_SHOW_LINK_DEFAULT); |
|
285 |
} |
|
286 |
if (!isset($node->print_mail_display_comment) || $node->print_mail_display_comment === NULL) { |
|
287 |
$node->print_mail_display_comment = variable_get('print_mail_display_comment_' . $node->type, PRINT_TYPE_COMMENT_LINK_DEFAULT); |
|
288 |
} |
|
289 |
if (!isset($node->print_mail_display_urllist) || $node->print_mail_display_urllist === NULL) { |
|
290 |
$node->print_mail_display_urllist = variable_get('print_mail_display_urllist_' . $node->type, PRINT_TYPE_URLLIST_DEFAULT); |
|
291 |
} |
|
284 | 292 |
|
285 | 293 |
_print_mail_node_conf_modify($node->nid, $node->print_mail_display, $node->print_mail_display_comment, $node->print_mail_display_urllist); |
286 | 294 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules