It looks like you're new here. If you want to get involved, click one of these buttons!
A Database Error Occurred
Error Number: 1054
Unknown column 'Array' in 'field list'
function form_fields($values = array(), $related = array())
{
$fields = parent::form_fields($values, $related);
$attorneys = fuel_model('attorneys', array('select' => 'slug, name_f, name_m, name_l', 'order'=>'name_l ASC'));
$n = array();
foreach($attorneys as $at){
$n[$at->slug] = $at->name_f.' '.$at->name_m.' '.$at->name_l;
}
// put in your own specific code to manipulate the fields here
$fields['hook'] = array(
'display_label' => TRUE,
'required' => FALSE,
'type' => 'multi',
'options' => $n,
);
return $fields;
}
Comments
http://docs.getfuelcms.com/general/models#hooks
http://docs.getfuelcms.com/general/models#serialized