$field_name[0]['value']. if (!is_array($feed_element)) { $field = $node->$field_name; $field[0]['value'] = $feed_element; $node->$field_name = $field; } return $node; } } } /** * Determines if a given field is of a given type * * @param string $node_type * Drupal content type. * @param string $field_name * Name of the field to determine the type of. * @param array $field_types * Array of field types that should be tested for. * @return unknown */ function feedapi_mapper_content_is_cck_type($field_name, $field_types) { $field = content_fields($field_name); if (in_array($field['type'], $field_types)) { return $field; } else { return FALSE; } }