You are here

public function views_plugin_query::set_limit in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_query.inc \views_plugin_query::set_limit()

Set a LIMIT on the query, specifying a maximum number of results.

File

plugins/views_plugin_query.inc, line 133
Definition of views_plugin_query.

Class

views_plugin_query
The base query class, which is the underlying layer in a View.

Code

public function set_limit($limit) {
  $this->limit = $limit;
}