Ejemplo n.º 1
0
 function commit()
 {
     // Prepare commit
     if (!field::commit()) {
         return false;
     }
     $id = $this->get('id');
     if ($id === false) {
         return false;
     }
     // Set up fields
     $fields = array();
     $fields['field_id'] = $id;
     $fields['prepopulate'] = $this->get('prepopulate') ? 1 : 0;
     $fields['time'] = $this->get('time') ? 1 : 0;
     $fields['multiple'] = $this->get('multiple') ? 1 : 0;
     $fields['range'] = $this->get('range') ? 1 : 0;
     return FieldManager::saveSettings($id, $fields);
 }