You are here

function _scs_get_types in Simplenews Content Selection 6.2

Internal to get newsletter types

3 calls to _scs_get_types()
scs_node_selection in ./scs.pages.inc
scs_perm in ./scs.module
Implements hook_perm()
scs_sort_nodes in ./scs.pages.inc
Node sort page

File

./scs.module, line 307
Select Drupal content to create a newsletter

Code

function _scs_get_types() {
  $options = array();
  $options[0] = t('No special type');
  $types = variable_get('scs_types', '');
  $types = explode("\n", $types);
  foreach ($types as $key => $type) {
    if ($type != '' && user_access('use ' . trim($type) . ' type')) {
      $options[strtolower(trim($type))] = trim($type);
    }
  }
  return $options;
}