Function to customize output for nodereference fields

I am attempting to output a nodereference field as a list of comma separated links. In the Bartik theme, I found a function that customizes the output of Taxonomy terms to a list:


function bartik_field__taxonomy_term_reference($variables) {
  $output = '';

  // Render the label, if it's not hidden.
  if (!$variables['label_hidden']) {
    $output .= '<h3 class="field-label">' . $variables['label'] . ': </h3>';
  }

  // Render the items.
  $output .= ($variables['element']['#label_display'] == 'inline') ? '<ul class="links inline">' : '<ul class="links">';
  foreach ($variables['items'] as $delta => $item) {
    $output .= '<li class="taxonomy-term-reference-' . $delta . '"' . $variables['item_attributes'][$delta] . '>' . drupal_render($item) . '</li>';
  }
  $output .= '</ul>';

  // Render the top-level DIV.
  $output = '<div class="' . $variables['classes'] . (!in_array('clearfix', $variables['classes_array']) ? ' clearfix' : '') . '">' . $output . '</div>';

  return $output;
}

This function is conceptually what I am trying to do, just with nodereference fields instead of taxonomy fields.

However, I am having trouble figuring out the function name for my subtheme so that I can overwrite the output for the nodereference fields. My subtheme is named "bartik_extend."

•Notice: Trying to get property of non-object

•Notice: Undefined index: fusion_core in system_theme_settings() (line 556 of /home/dj4admin/domains/dj4me.co.uk/public_html/modules/system/system.admin.inc).
•Notice: Trying to get property of non-object in system_theme_settings() (line 556 of /home/dj4admin/domains/dj4me.co.uk/public_html/modules/system/system.admin.inc).
.

changed file attributes... this is when i go into the CP of Mix and Match theme

Any help here would be great

Thanks

Matt

Price an offers for building Dating site with Drupal 7

Please offer you price and solutions!

Required Features:

• Profile search
Search by distance, zip codes, cities, countries, usernames, keywords. Ability to narrow down site search to any geographic location. 'Refine Search'. Saved search criteria. Quick and Advanced search forms.
• Matchmaking
View the list of profiles that meet your match criteria. Receive the matching profiles list (with photo) to your email.
• Mailbox
Internal messaging system in a convenient dialogue-like contact center. Improved user interface. Possibility to start new conversations right from the mailbox. Auto-complete suggestions from the friends list for the 'Send to' field.
• Who viewed my profile
Shows users who viewed a member's profile, and a number of times his profile page was opened.
• Photo upload
Customizable limit for uploaded photos. Easy preview. Private photo. Password-protected photo. Watermark support. Photo tags.
• Shoutbox
A general chat that can be added to your site index page for non-logged in visitors, or to the MemberHome page for the registered members. It is a great tool for site users to express themselves and attract attention with just a couple of clicks. Comes with a badwords filter. Can be configured to be membership-dependent.
• Speed-Dating

Drupal - Car Leasing

Hello all,

I am planning on building a site for a friend for a car leasing online showroom.

He needs to be able to add new cars under different manufacturers and special offers. Along with an archive of old cars and an area to sell cars brand new.

Is there a module out there that will assist me in completing this.

Kind Regards

J

Error Upgrading existing Drupal 6.20 site to 7.00 - Unknown MySQL server host 'localhost:3306'

I experienced the following problem twice trying to upgrade an existing site, exactly following the procedure on http://drupalcode.org/viewvc/drupal/drupal/UPGRADE.txt?view=markup.
The error reads:

PDOException: SQLSTATE[HY000] [2005] Unknown MySQL server host 'localhost:3306' (1) in drupal_get_installed_schema_version() (line 151 of /is/htdocs/wp10000000_I72WMWPG3F/www/customer/includes/install.inc).
The website encountered an unexpected error. Please try again later.

Drupal content sync

Hi,

I have 3 drupal sites. 2 of the drupal sites are public site (.com site), the third one is an internal site behind a firewall. The site behind the firewall runs in Linux and MySQL, but pull data from the office MS-SQL and create nodes from it. The questions is:

How can I update the other 2 drupal sites content from the office drupal site?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x