Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292199

hook_help() does not support language prefix

$
0
0

Current code in node.module

<?php
function node_help($path, $arg) {
...
    case
'node/%/edit':
     
$node = node_load($arg[1]);
     
$type = node_type_load($node->type);
      return (!empty(
$type->help) ? '<p>'. filter_xss_admin($type->help) . '</p>': '');
?>

Throws notice and because usage of arg()

Notice: Trying to get property of non-object in node_help() (line 135 of core/modules/node/node.module).


Viewing all articles
Browse latest Browse all 292199

Trending Articles