Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) Multiple Field Settings: Display all values in same row:
- 8 =>
- array (
- 'title' => 'Test Item Title',
- 'field_item_price' => '',
- 'field_item_description' => '
- This is a test item to show the problem of extra "something" added to a multiple field entry.
- ',
- 'field_item_options' => '
- Option A
- ,
- Option B
- ',
- 'field_item_options_price' => '$1.00, $2.00',
- 'draggableviews' => '',
- ),
- 2) With Multiple field settings: not checked.
- 9 =>
- array (
- 'title' => 'Test Item Title',
- 'field_item_price' => '',
- 'field_item_description' => '
- This is a test item to show the problem of extra "something" added to a multiple field entry.
- ',
- 'field_item_options' => '
- Option A
- ',
- 'field_item_options_price' => '$2.00',
- 'draggableviews' => '',
- ),
- 3) various attempts to remove the extra space include using trim() and preg_replace() in a views template override:
- $striped_array_options = trim($row['field_item_options']);
- $stripeded_array = preg_replace('~\s+~', 'x', $striped_array_options);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement