function newsletter_exposed_templates in Newsletter 7
Same name and namespace in other branches
- 7.2 newsletter.module \newsletter_exposed_templates()
Return value
An array of newsletter template ids with exposed status.
1 call to newsletter_exposed_templates()
File
- ./
newsletter.module, line 1188 - Defines menu items for newsletter administration, permissions and basic drupal hooks.
Code
function newsletter_exposed_templates() {
$query = new EntityFieldQuery();
$query
->entityCondition('entity_type', 'newsletter_template')
->propertyCondition('exposed', 1);
$entities = $query
->execute();
return isset($entities['newsletter_template']) ? array_keys($entities['newsletter_template']) : array();
}