function slickgrid_editors::update in Slickgrid 7.2
Same name and namespace in other branches
- 7 plugins/editors/handler.class.php \slickgrid_editors::update()
Do the actual update - passes the update to the plugin's process functions
File
- plugins/editors/ handler.class.php, line 52 
Class
- slickgrid_editors
- Base class for slickgrid editor.
Code
function update() {
  if (function_exists($this->plugin['process'])) {
    $this->plugin['process']($this);
  }
  // Are there any form errors?
  if ($errors = form_get_errors()) {
    foreach ($errors as $error) {
      // Form errors will apply for all entities
      foreach ($this->entities as $entity) {
        list($id) = entity_extract_ids($this->entity_type, $entity);
        $this
          ->set_error($id, $error);
      }
    }
  }
  return $this
    ->get_result();
}