static function flag_flag::factory_by_content_type in Flag 7.2
Same name and namespace in other branches
- 5 flag.inc \flag_flag::factory_by_content_type()
- 6.2 flag.inc \flag_flag::factory_by_content_type()
- 6 flag.inc \flag_flag::factory_by_content_type()
Another factory method. Returns a new, "empty" flag; e.g., one suitable for the "Add new flag" page.
4 calls to flag_flag::factory_by_content_type()
- flag_add_form_validate in includes/
flag.admin.inc - flag_add_page in includes/
flag.admin.inc - Menu callback for adding a new flag.
- flag_enable in ./
flag.install - Implements hook_enable().
- flag_views_data_alter in includes/
flag.views.inc - Implements hook_views_data_alter().
File
- ./
flag.inc, line 226 - 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
static function factory_by_content_type($content_type) {
return flag_create_handler($content_type);
}