Index: link_node.module =================================================================== --- link_node.module (revision 37) +++ link_node.module (working copy) @@ -118,10 +118,12 @@ //drupal_set_message("found node $nid and it's of type $node->type"); // iterate over all name=value pairs and override $node values with them - if ( preg_match_all($meta_tag_params_regexp, $match[2][$key], $parm_match) == 0 ){ - $meta_tag_params_regexp=$meta_tag_params_regexp2 ; - } - if (preg_match_all($meta_tag_params_regexp, $match[2][$key], $parm_match)) { + $regex = $meta_tag_params_regexp; + if ( preg_match_all($regex, $match[2][$key], $parm_match) == 0 ){ + $regex = $meta_tag_params_regexp2 ; + } + + if (preg_match_all($regex, $match[2][$key], $parm_match)) { //print("\nparm_match =
\n"); var_dump($parm_match); print("\n\n");
$allowed_vars = explode(',', variable_get("link_node_allowed_vars_$node->type", ""));
for($i=0; $i