You are here

function editableviews_handler_field_node_title_edit::edit_form_submit in Editable Views 7

Handle the form submission for this field's form element.

File

handlers/editableviews_handler_field_node_title_edit.inc, line 77

Class

editableviews_handler_field_node_title_edit
Field handler for node title editable field.

Code

function edit_form_submit($entity_type, $entity, &$element, &$form_state) {
  $parents = $element['#parents'];
  $parents[] = 'title';

  // Get the value out of the form state.
  $value = drupal_array_get_nested_value($form_state['values'], $parents);

  // Set it on the node.
  $entity->title = $value;
}