I noticed that when you have help text for the nodeprofile node type, it only shows up on the node/add page.

This patch adds the appropriate help info to /user/[uid]/edit/[node_type] by invoking hook_help.

function nodeprofile_help($section) {
  if (arg(0) == 'user' && arg(2) == 'edit' && $type = arg(3)) {
    $type = node_get_types('type', str_replace('-', '_', arg(3)));
    return '<p>'. filter_xss_admin($type->help) .'</p>';
  }
}
CommentFileSizeAuthor
nodeprofile_submit_help.patch546 bytesmsonnabaum

Comments

fago’s picture

Status: Needs review » Needs work

That sounds good, but your patch doesn't check whether the given path is really from node profile. This needs to be fixed.