You are here

function newsletter_exposed_templates in Newsletter 7

Same name and namespace in other branches
  1. 7.2 newsletter.module \newsletter_exposed_templates()

Return value

An array of newsletter template ids with exposed status.

1 call to newsletter_exposed_templates()
newsletter_exposed_lists in ./newsletter.module

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();
}