You are here

function _simplenews_scheduler_get_full_html_format in Simplenews Scheduler 7

Same name and namespace in other branches
  1. 6.2 simplenews_scheduler.module \_simplenews_scheduler_get_full_html_format()

Find Full HTML input format.

Use the Drupal API for finding the Full HTML input format, this is what the subsequent newsletter editions need to be set to.

File

./simplenews_scheduler.module, line 649
Simplenews Scheduler module allows a schedule to be set for sending (and resending) a Simplenews item.

Code

function _simplenews_scheduler_get_full_html_format() {
  global $user;
  $formats = filter_formats($user);
  foreach ($formats as $index => $format) {
    if (stristr($format->name, 'Full HTML')) {
      return $index;
    }
  }
  return false;
}