I have a callback of an order_pane hook, which returns the string "Array" instead of the correct form in the 'edit-form' part of the switch. Any ideas of why?
Here is the code
function test_order_pane_callback($op, $arg1){
switch ($op) {
case 'edit-form' :
$form['info'] = array(
'#type' => 'fieldset',
'#title' => t("Info Adicional"),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['info']['tipo_producto'] = array(
'#type' => 'select',
'#title' => t('Tipo de productos'),
'#options' => $opciones,
'#required' => TRUE,
'#description' => 'Seleccione el tipo de producto que enviara. ',
'#weight' =>1,
'#default_value' => '',
'#multiple'=>'multiple',
);
return $form;
}
}
