You are here

function view::_save_rows in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 includes/ \view::_save_rows()
  2. 7.3 includes/ \view::_save_rows()

Save a row to the database for the given key, which is one of the keys from view::db_objects()

1 call to view::_save_rows()
view::save in includes/
Save the view to the database. If the view does not already exist, A vid will be assigned to the view and also returned from this function.


includes/, line 1700 Provides the view object type and associated methods.


An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.


function _save_rows($key) {
  $count = 0;
  foreach ($this->{$key} as $position => $object) {
    $object->position = ++$count;
    $object->vid = $this->vid;