1 views_handler_field_machine_name.inc views_handler_field_machine_name::get_value_options()

File

core/modules/views/handlers/views_handler_field_machine_name.inc, line 22
Definition of views_handler_field_machine_name.

Class

views_handler_field_machine_name
Field handler whichs allows to show machine name content as human name.

Code

function get_value_options() {
  if (isset($this->value_options)) {
    return;
  }

  if (isset($this->definition['options callback']) && is_callable($this->definition['options callback'])) {
    if (isset($this->definition['options arguments']) && is_array($this->definition['options arguments'])) {
      $this->value_options = call_user_func_array($this->definition['options callback'], $this->definition['options arguments']);
    }
    else {
      $this->value_options = call_user_func($this->definition['options callback']);
    }
  }
  else {
    $this->value_options = array();
  }
}