Ejemplo n.º 1
0
 /**
  * Stores a form value into the object
  *
  * @param string $key The name of a form component that will be stored
  * @param mixed $value The value of the form component to store
  */
 function field_save($key, $value)
 {
     Vocabulary::prep_update($value);
     foreach ($value as $term) {
         if ($term instanceof Term) {
             $term->update();
         }
     }
 }