You are here

function slickgrid_callback_update in Slickgrid 7

Same name and namespace in other branches
  1. 6 slickgrid.callbacks.inc \slickgrid_callback_update()
  2. 7.2 includes/slickgrid.callbacks.inc \slickgrid_callback_update()

Callback function - update a node This is the slickgrid.js update function.

File

includes/slickgrid.callbacks.inc, line 79

Code

function slickgrid_callback_update() {
  ctools_include('plugins');
  $plugin_definition = ctools_get_plugins('slickgrid', 'editor', $_POST['plugin']);
  require_once DRUPAL_ROOT . '/' . $plugin_definition['path'] . "/handler.class.php";
  $class = ctools_plugin_get_class($plugin_definition, 'handler');
  if ($class) {
    $editor_plugin = new $class($plugin_definition);
    return $editor_plugin
      ->update();
  }
}