Révision 30d5b9c5
Ajouté par Mathieu Schiano Di Schiabica il y a environ 8 ans
drupal7/modules/node/node.admin.inc | ||
---|---|---|
508 | 508 |
$options = array(); |
509 | 509 |
foreach ($nodes as $node) { |
510 | 510 |
$langcode = entity_language('node', $node); |
511 |
$l_options = $langcode != LANGUAGE_NONE && isset($languages[$langcode]) ? array('language' => $languages[$langcode]) : array(); |
|
511 |
$uri = entity_uri('node', $node); |
|
512 |
if ($langcode != LANGUAGE_NONE && isset($languages[$langcode])) { |
|
513 |
$uri['options']['language'] = $languages[$langcode]; |
|
514 |
} |
|
512 | 515 |
$options[$node->nid] = array( |
513 | 516 |
'title' => array( |
514 | 517 |
'data' => array( |
515 | 518 |
'#type' => 'link', |
516 | 519 |
'#title' => $node->title, |
517 |
'#href' => 'node/' . $node->nid,
|
|
518 |
'#options' => $l_options,
|
|
520 |
'#href' => $uri['path'],
|
|
521 |
'#options' => $uri['options'],
|
|
519 | 522 |
'#suffix' => ' ' . theme('mark', array('type' => node_mark($node->nid, $node->changed))), |
520 | 523 |
), |
521 | 524 |
), |
Formats disponibles : Unified diff
Update to 7.42