Needs work
Project:
Node Profile
Version:
5.x-1.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2008 at 01:35 UTC
Updated:
29 Sep 2008 at 20:53 UTC
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>';
}
}
| Comment | File | Size | Author |
|---|---|---|---|
| nodeprofile_submit_help.patch | 546 bytes | msonnabaum |
Comments
Comment #1
fagoThat sounds good, but your patch doesn't check whether the given path is really from node profile. This needs to be fixed.