function flag_flag::default_options in Flag 5
Same name and namespace in other branches
- 6 flag.inc \flag_flag::default_options()
Declares the options this flag supports, and their default values.
Derived classes should want to override this.
2 calls to flag_flag::default_options()
- flag_flag::construct in ./
flag.inc - Default constructor. Loads the default options.
- flag_flag::get_serialized_options in ./
flag.inc - Options are stored serialized in the database.
File
- ./
flag.inc, line 186 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_flag
- This abstract class represents a flag, or, in Views 2 terminology, "a handler".
Code
function default_options() {
return array(
'flag_short' => '',
'flag_long' => '',
'flag_message' => '',
'flag_confirmation' => '',
'unflag_short' => '',
'unflag_long' => '',
'unflag_message' => '',
'unflag_confirmation' => '',
'link_type' => 'toggle',
);
}