function flag_lists_template_exists in Flag Lists 7
Same name and namespace in other branches
- 6 flag_lists.module \flag_lists_template_exists()
- 7.3 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 1589 - The Flag Lists module.
Code
function flag_lists_template_exists($type) {
$query = db_select('flag_lists_types')
->condition('type', $type);
$query
->addField('flag_lists_types', 'type');
$exists = $query
->execute()
->fetchField();
if (!empty($exists)) {
return TRUE;
}
return FALSE;
}