This is because both this module and Vote Up/Down name their formatters 'default', which is incorrect! Your formatter names need to be unique across all modules.

Patch to follow.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jamsilver’s picture

Assigned: jamsilver » Unassigned
Status: Needs work » Needs review
FileSize
722 bytes

Patch attached.

jamsilver’s picture

Title: 'Tabular View' formatter disappears when Vote Up/Down (vud) module is enabled. » 'Tabular View' formatter disappears when Vote Up/Down (vote_up_down) module is enabled.
jamsilver’s picture

See the complementary issue I've raised against the vote_up_down module: #2007012: Field formatter names must be unique across all modules. Incompatible with tablefield module.

jamsilver’s picture

Issue summary: View changes

Fixing link to vote up down module

Barry_Fisher’s picture

Issue summary: View changes
Status: Needs review » Fixed

This has been fixed in 7.x-2.4 version on tablefield. There is no specific mention in the release notes (from what I can see), however I can confirm these two changes now exist in the module:

/**
 * Implements hook_field_info().
 */
function tablefield_field_info() {
  return array(
    'tablefield' => array(
      'label' => t('Table Field'),
      'description' => t('Stores a table of text fields'),
      'default_widget' => 'tablefield',
      'default_formatter' => 'tablefield_default',
      'property_type' => 'tablefield',
      'property_callbacks' => array('tablefield_property_info_callback'),
    ),
  );
}

/**
 * Implementation of hook_field_formatter_info().
 */
function tablefield_field_formatter_info() {
  return array(
    'tablefield_default' => array(
      'label' => t('Tabular View'),
      'field types' => array('tablefield'),
    ),
  );
}

I'll close this issue, as the patch in #1 amounts to the same.

vitalie’s picture

thanks @reallifedesign.

fyi, this was fixed in https://www.drupal.org/node/2167059 which was mentioned in release notes.

Barry_Fisher’s picture

Good catch @vitalie. I couldn't immediately spot that issue as the one that resolves this tablefield_default formatter issue. So it looks like this issue is practically and officially fixed.

vitalie’s picture

:)

Status: Fixed » Closed (fixed)

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