You are here

function editablefields_views_pre_query in Editable Fields 5.3

Same name and namespace in other branches
  1. 5 editablefields.module \editablefields_views_pre_query()
  2. 5.2 editablefields.module \editablefields_views_pre_query()

File

./editablefields.module, line 498

Code

function editablefields_views_pre_query(&$view) {
  if ($_POST['editablefields_addnew_form']) {
    $type = _editablefields_node_type($view);
    if (!$type) {
      return;
    }
    unset($_POST['editablefields_addnew_form']);
    _editablefields_drupal_get_form(true, $type, $view);
  }
}