pipeline delimited options are not seen(in the textarea) while editing a previously added dropdown menu item.
flexinode_field_select_config function in field_select.inc

function flexinode_field_select_config($field, $edit) {
  return array('options' => array(
    '#type' => 'textarea',
    '#default_value' =>  is_array($edit['options']) ? implode('|', $edit['options']) : '',
    '#description' => t('Please enter a pipe delimited list of options with no cairrage returns. For example: "Red|Blue|Green" or "Small|Medium|Large"'),
    ));
}

the second parameter $edit is useless and $edit['options'] should be replaced with $field->options.

function flexinode_field_select_config($field) {
  return array('options' => array(
    '#type' => 'textarea',
    '#default_value' =>  is_array($field->options) ? implode('|', $field->options) : '',
    '#description' => t('Please enter a pipe delimited list of options with no cairrage returns. For example: "Red|Blue|Green" or "Small|Medium|Large"'),
    ));
}

sorry, i dont know how to make a patch.

CommentFileSizeAuthor
#1 field_select.inc_0.patch1.04 KBkarens

Comments

karens’s picture

StatusFileSize
new1.04 KB

Here is a patch for so you can see your options when you go back to edit a select field. It also fixes a typo in the spelling of the word "carriage".

karens’s picture

Status: Active » Needs review

Forgot to change the status.

Bèr Kessels’s picture

Status: Needs review » Fixed

Committed. thanks

Anonymous’s picture

Status: Fixed » Closed (fixed)