You are here

function _scs_get_typefilter in Simplenews Content Selection 6.2

Interal to get the possible content types to filter on

1 call to _scs_get_typefilter()
scs_node_selection in ./scs.pages.inc

File

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

Code

function _scs_get_typefilter() {
  $types = variable_get('scs_content_types', array());
  $options = array();
  $options[0] = t('Select node type');
  foreach ($types as $key => $value) {
    if (!is_numeric($value)) {
      $options[$key] = $value;
    }
  }
  return $options;
}