function flag_lists_template_exists in Flag Lists 6
Same name and namespace in other branches
- 7.3 flag_lists.module \flag_lists_template_exists()
- 7 flag_lists.module \flag_lists_template_exists()
Checks for a list template for a content type.
2 calls to flag_lists_template_exists()
- flag_lists_form in ./
flag_lists.admin.inc - Form to Add or edit a list.
- theme_flag_lists_list in ./
flag_lists.module
File
- ./
flag_lists.module, line 1096 - The Flag Lists module.
Code
function flag_lists_template_exists($type) {
if ($exists = db_result(db_query("SELECT type from {flag_lists_types} WHERE type = '%s'", $type))) {
return TRUE;
}
return FALSE;
}