
For Current Users
As you know, Node Profile has stopped development ... but that hasn't stopped other module developers from referring to its code!
I speak, of course, of Register Profile that allows for multiple profile types. Once you enable Register Profile and set up a single profile type, you're fine. But add a second type ... and Register Profile cries out for is_nodeprofile() ... and all registration attempts throw an error when it cannot be found.
The fix? Simple.
Grab this bit of code from nodeprofile.module and paste it into the top of registerprofile.module. Voila! Here's the function ripped from nodeprofile:
======= snip ========
/**
* Determine if a given node is a nodeprofile.
* @param $type The node object or the node's type
*/
function is_nodeprofile($type) {
if (is_object($type)) {
$type = $type->type;
}
return variable_get('nodeprofile_'. $type, 0);
}
======= snip ========
Enjoy!
Review by Stupidscript [info] on June 15, 2010 - 19:47