Closed (fixed)
Project:
Custom Formatters
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2009 at 13:30 UTC
Updated:
4 Feb 2010 at 06:50 UTC
warning: implode() [function.implode]: Invalid arguments passed in /Applications/MAMP/htdocs/drupal6/sites/all/modules/custom_formatters/custom_formatters.admin.inc on line 68.
The code in question is:
$form['field_types'] = array(
'#type' => 'textfield',
'#title' => t('Field types'),
'#autocomplete_path' => 'js/formatters/autocomplete',
'#default_value' => implode(', ', unserialize($formatter['field_types'])),
'#description' => t('A comma-separated list of CCK fields. Example: number_integer, number_decimal.'),
'#required' => TRUE,
);
Looks like $formatter is an empty array at the time.
Comments
Comment #1
decipheredHi lyricnz,
Right you are, unfortunately the dev environment I've been testing on isn't showing warnings, but I will deal with that.
As it's only a warning it can be ignored, but it will be fixed, version 1.1 is practically ready to go, I just want to port it to 7 before I release it.
Cheers,
Deciphered.
Comment #2
decipheredFixed in 6.x-1.1 and 7.x-1.x-dev.
Cheers,
Deciphered.
Comment #3
decipheredComment #4
alan d. commentedSimilar error in new dev snapshot. No 2 & 3 arguments (2 separate errors).
Comment #5
decipheredHi Alan,
Good catch, can't believe I let that one slip through. Will be fixed in next development build.
Cheers,
Deciphered.
Comment #6
decipheredFixed and committed to DRUPAL-6--1.