function Tracker_field_format(&$tracker_form, $field) { parent::Tracker_field($tracker_form, $field); foreach ($this->form->config->get($this->name) as $option) { list($key, $style, $format) = array_pad(array_map('trim', $option), 3, ''); if ($style != '') { $this->styles[$key] = $style; } if ($format != '') { $this->formats[$key] = $format; } } }
function Tracker_field_format($field, $page, $refer, &$config) { parent::Tracker_field($field, $page, $refer, $config); foreach ($this->config->get($this->name) as $option) { list($key, $style, $format) = array_pad(array_map(create_function('$a', 'return trim($a);'), $option), 3, ''); if ($style != '') { $this->styles[$key] = $style; } if ($format != '') { $this->formats[$key] = $format; } } }