public function Bean::setValues in Bean (for Drupal 7) 7
Set the values from a plugin
File
- includes/
bean.core.inc, line 335 - Bean classes and plugin interface
Class
- Bean
- The Bean entity class
Code
public function setValues($values) {
$this->data = array();
foreach ($this->plugin
->values() as $field => $value) {
$this->data[$field] = $values[$field];
}
return $this;
}