You are here

function apply_for_role_views_handler_field_message::pre_query in Apply for role 7.2

Same name and namespace in other branches
  1. 7 views/handlers/apply_for_role_views_handler_field_message.inc \apply_for_role_views_handler_field_message::pre_query()

Run before the view is built.

This gives all the handlers some time to set up before any handler has been fully run.

Overrides views_handler::pre_query

File

views/handlers/apply_for_role_views_handler_field_message.inc, line 6

Class

apply_for_role_views_handler_field_message
Field handler to provide a message.

Code

function pre_query() {
  if (!variable_get('apply_for_role_allow_message', 0)) {
    unset($this->view->field[$this->field]);
  }
}