function flag_plugin_argument_validate_flaggability::_get_option in Flag 6
Same name and namespace in other branches
- 6.2 includes/flag_plugin_argument_validate_flaggability.inc \flag_plugin_argument_validate_flaggability::_get_option()
- 7.2 includes/flag_plugin_argument_validate_flaggability.inc \flag_plugin_argument_validate_flaggability::_get_option()
Validator arguments are stored in the argument object, not here, so we define a convenience method for fetching them.
3 calls to flag_plugin_argument_validate_flaggability::_get_option()
- flag_plugin_argument_validate_flaggability::get_flag in includes/
flag_plugin_argument_validate_flaggability.inc - flag_plugin_argument_validate_flaggability::validate_argument in includes/
flag_plugin_argument_validate_flaggability.inc - Tests whether the argument is flaggable, or flagged, or flagged by current user. These are three possible tests, and which of the three to actually carry out is determined by 'flag_test'.
- flag_plugin_argument_validate_flaggability::validate_form in includes/
flag_plugin_argument_validate_flaggability.inc
File
- includes/
flag_plugin_argument_validate_flaggability.inc, line 87 - Contains the flaggability validator handler.
Class
- flag_plugin_argument_validate_flaggability
- Validates whether an argument is a flaggable/flagged object.
Code
function _get_option($option, $default) {
$option = $this
->_option_name($option);
return isset($this->argument->options[$option]) ? $this->argument->options[$option] : $default;
}