#603266: Revert the patch for devel_node_access, based on my and agentrickard's findings.
authorsalvis
Thu, 5 Nov 2009 22:02:09 +0000 (22:02 +0000)
committersalvis
Thu, 5 Nov 2009 22:02:09 +0000 (22:02 +0000)
devel_node_access.module

index da6146f..dbf8146 100644 (file)
@@ -746,8 +746,8 @@ function devel_node_access_node_access_explain($row) {
  */
 function _devel_node_access_get_node_title($node, $clip_and_decorate = TRUE) {
   if (isset($node)) {
-    if (isset($node->title[FIELD_LANGUAGE_NONE][0]['value'])) {
-      $node_title = check_plain($node->title[FIELD_LANGUAGE_NONE][0]['value']);
+    if (isset($node->title)) {
+      $node_title = check_plain($node->title);
       if ($clip_and_decorate) {
         if (drupal_strlen($node_title) > 20) {
           $node_title = "<span title='node/$node->nid: $node_title'>" . drupal_substr($node_title, 0, 15) . '...</span>';