You are here

public function views_handler_argument::default_empty in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_argument.inc \views_handler_argument::default_empty()
  2. 6.2 handlers/views_handler_argument.inc \views_handler_argument::default_empty()

Default action: empty.

If an argument was expected and was not given, in this case, display the view's empty text.

File

handlers/views_handler_argument.inc, line 805
Definition of views_handler_argument.

Class

views_handler_argument
Base class for arguments.

Code

public function default_empty() {

  // We return with no query; this will force the empty text.
  $this->view->built = TRUE;
  $this->view->executed = TRUE;
  $this->view->result = array();
  return FALSE;
}