function flag_flag::theme_suggestions in Flag 7.3
Same name and namespace in other branches
- 5 flag.inc \flag_flag::theme_suggestions()
- 6.2 flag.inc \flag_flag::theme_suggestions()
- 6 flag.inc \flag_flag::theme_suggestions()
- 7.2 flag.inc \flag_flag::theme_suggestions()
Provides an array of possible themes to try for a given flag.
1 call to flag_flag::theme_suggestions()
- flag_flag::theme in includes/
flag/ flag_flag.inc - Renders a flag/unflag link.
File
- includes/
flag/ flag_flag.inc, line 1600 - Contains the flag_flag class. Flag type classes use an 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 theme_suggestions() {
$suggestions = array();
$suggestions[] = 'flag__' . $this->name;
$suggestions[] = 'flag__' . $this->link_type;
$suggestions[] = 'flag';
return $suggestions;
}