You are here

function simplenews_handler_field_allowed_values in Simplenews 7.2

Returns the array of allowed values for the simplenews_newsletter_handler field.

See also

list_allowed_values

1 call to simplenews_handler_field_allowed_values()
simplenews_node_tab_send_form in includes/simplenews.admin.inc
@todo
1 string reference to 'simplenews_handler_field_allowed_values'
simplenews_issue_handler_field_add in ./simplenews.module
Add a field for the recipient handler choice.

File

./simplenews.module, line 675
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_handler_field_allowed_values($field = array(), $instance = NULL, $entity_type = NULL, $entity = NULL) {
  ctools_include('plugins');
  $handlers = ctools_get_plugins('simplenews', 'recipient_handlers');
  $allowed_values = array();
  foreach ($handlers as $handler => $settings) {
    $allowed_values[$handler] = filter_xss($settings['title']);
  }
  return $allowed_values;
}