I got this error:

notice: Undefined variable: object in /Users/matt1/Drupal-devel/drupal-6.x-dev/sites/all/modules/nodereference_url/nodereference_url.module on line 68.

Here is the code:

function nodereference_url_build_all_links($node, $teaser) {
  $links = array();
  $fields = content_fields(NULL, $object->type);
  foreach ($fields as $field_name => $field) {
    foreach (_nodereference_url_field_instances($field_name) as $target_type => $instance) {
      if ($instance['widget']['type'] == 'nodereference_url') {
        $link_settings = $instance['widget']['node_link'];
        if (($link_settings['teaser'] && $teaser == TRUE) || ($link_settings['full'] && $teaser == FALSE)) {
          if ($link = nodereference_url_build_link($node, $instance, $teaser)) {
            $links[$target_type .'_'. $field_name] = $link;
          }
        }
      }
    }
  }
  return $links;
}

$object is not defined anywhere.

Comments

mattyoung’s picture

Status: Active » Fixed

Never mind. Update to 6.x-1.11 the problem is gone.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.