You are here

function _flag_is_views3 in Flag 6.2

Returns TRUE if we're running under Views 3 and higher. FALSE otherwise.

2 calls to _flag_is_views3()
flag_plugin_argument_validate_flaggability::_get_option in includes/flag_plugin_argument_validate_flaggability.inc
Returns an option's value.
flag_plugin_argument_validate_flaggability::_option_name in includes/flag_plugin_argument_validate_flaggability.inc
Returns an option's name.

File

includes/flag_plugin_argument_validate_flaggability.inc, line 11
Contains the flaggability validator handler.

Code

function _flag_is_views3() {

  // We just test the first character (and dodge the complexity of version_compare()).
  return views_api_version() >= '3';
}