You are here

public function views_handler_argument::default_not_found 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_not_found()
  2. 6.2 handlers/views_handler_argument.inc \views_handler_argument::default_not_found()

Default action: not found.

If an argument was expected and was not given, in this case, report the view as 'not found' or hide it.

File

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

Class

views_handler_argument
Base class for arguments.

Code

public function default_not_found() {

  // Set a failure condition and let the display manager handle it.
  $this->view->build_info['fail'] = TRUE;
  return FALSE;
}