You are here

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

Determine if the argument needs a style plugin.

Return value

bool the argument needs a plugin style.

Overrides views_handler::needs_style_plugin

File

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

Class

views_handler_argument
Base class for arguments.

Code

public function needs_style_plugin() {
  $info = $this
    ->default_actions($this->options['default_action']);
  $validate_info = $this
    ->default_actions($this->options['validate']['fail']);
  return !empty($info['style plugin']) || !empty($validate_info['style plugin']);
}