This module is exactly what I need, but after installing it I get a blank screen and none of the pages will load.
Error is due to the $aa variable being empty i suspect. I got a PHP error on screen here.
basically you need to go to the settings page and insert some node fields you want to extract. ?q=admin/settings/globalnode
?q=admin/settings/globalnode
To get the module working I reworked one funtion slightly. Paste this in to the module in place of the existing function by the same name.
function globalnode_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL){ if(!is_object($GLOBALS['globalnode'])){ $attributes = variable_get('globalnode_attributes', ''); if($attributes) { $attributes = str_replace(', ', "\n", $attributes); $attributes = str_replace(',', "\n", $attributes); $attributes = str_replace(';', "\n", $attributes); $attributes = array_unique(split("\r\n", $attributes)); $GLOBALS['globalnode'] = new stdClass(); switch($op){ case 'load': foreach($attributes as $att){ if($node->$att){ $GLOBALS['globalnode']->$att = $node->$att; } } break; } } } }
I rolled this fix in to a real patch over at http://drupal.org/node/140344
Thanks for the patch. I've incorporated and checked in.
Comments
Comment #1
buddaError is due to the $aa variable being empty i suspect. I got a PHP error on screen here.
basically you need to go to the settings page and insert some node fields you want to extract.
?q=admin/settings/globalnodeTo get the module working I reworked one funtion slightly. Paste this in to the module in place of the existing function by the same name.
Comment #2
buddaI rolled this fix in to a real patch over at http://drupal.org/node/140344
Comment #3
dllh commentedThanks for the patch. I've incorporated and checked in.
Comment #4
(not verified) commented