You are here

function flag_flag::theme_suggestions in Flag 5

Same name and namespace in other branches
  1. 6.2 flag.inc \flag_flag::theme_suggestions()
  2. 6 flag.inc \flag_flag::theme_suggestions()
  3. 7.3 includes/flag/flag_flag.inc \flag_flag::theme_suggestions()
  4. 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 ./flag.inc
Renders a flag/unflag link. This is a wrapper around theme('flag') that, in Drupal 6, easily channels the call to the right template file.

File

./flag.inc, line 792
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 theme_suggestions() {
  $suggestions = array();
  $suggestions[] = 'flag__' . $this->name;
  $suggestions[] = 'flag';
  return $suggestions;
}