Index: content_profile.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/content_profile/Attic/content_profile.module,v
retrieving revision 1.1.2.41
diff -u -p -r1.1.2.41 content_profile.module
--- content_profile.module	5 Aug 2009 14:08:34 -0000	1.1.2.41
+++ content_profile.module	28 Nov 2009 00:18:15 -0000
@@ -81,6 +81,21 @@ function content_profile_menu_alter(&$it
   }
 }
 
+/**
+ * Implementation of hook_help().
+ * Add node submission guidelines to the node edit forms provided by content_profile
+ * Initial preg_match done on path to reduce unnessary loops and calls to content_profile_get_types()
+ */
+function content_profile_help($path, $arg) {
+  if (preg_match('/^user\/\%\/edit\/.*/', $path)) {
+    foreach (content_profile_get_types('names') as $type => $type_name) {
+      if ($path == 'user/%/edit/'. $type) {
+        $node = content_profile_load($type, $arg[1]);
+        return node_help('node/%/edit',array(1=>$node->nid));
+      }
+    }
+  }
+}
 
 function content_profile_page_access($type, $account) {
   if ($node = content_profile_load($type, $account->uid)) {
