Needs review
Project:
Content Profile
Version:
6.x-1.x-dev
Component:
Panels integration
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2011 at 06:57 UTC
Updated:
15 Jul 2011 at 04:45 UTC
Jump to comment: Most recent file
Comments
Comment #1
cafuego commentedRan into some interesting issues. Updated patch with lighter API call attached.
If you want to display the content profile node form in a Panel, you will need to make sure the drupal_goto() call in content_profile_nodeapi() will not run. Preparing the node form in the Panel context triggers the nodeapi('prepare') hook and causes non-admin users to be redirected to the profile node edit page instead of the Panel.
A very quick hack-around to make this work on the user profile panel template is to replace:
with
on line 376 of content_profile.module.