/**
  * Returns an edit array containing the values to be posted.
  */
 protected function getEditValues($values, $langcode, $new = FALSE)
 {
     $edit = parent::getEditValues($values, $langcode, $new);
     foreach ($edit as $property => $value) {
         if ($property == 'info') {
             $edit['info[0][value]'] = $value;
             unset($edit[$property]);
         }
     }
     return $edit;
 }
Exemplo n.º 2
0
 /**
  * Returns an edit array containing the values to be posted.
  */
 protected function getEditValues($values, $langcode, $new = FALSE)
 {
     $edit = parent::getEditValues($values, $langcode, $new);
     // To be able to post values for the configurable base fields (name,
     // description) have to be suffixed with [0][value].
     foreach ($edit as $property => $value) {
         foreach (array('name', 'description') as $key) {
             if ($property == $key) {
                 $edit[$key . '[0][value]'] = $value;
                 unset($edit[$property]);
             }
         }
     }
     return $edit;
 }