You are here

function _gathercontent_create_text_formats in GatherContent 7.3

2 calls to _gathercontent_create_text_formats()
gathercontent_install in ./gathercontent.install
Implements hook_install().
gathercontent_update_7308 in ./gathercontent.install
Create custom GatherContent formats and revert views.

File

./gathercontent.install, line 54

Code

function _gathercontent_create_text_formats() {
  $filtered_html_format = array(
    'format' => 'filtered_gathercontent_html',
    'name' => 'Filtered GatherContent HTML',
    'weight' => 0,
    'filters' => array(
      // URL filter.
      'filter_url' => array(
        'weight' => 0,
        'status' => 1,
      ),
      // HTML filter.
      'filter_html' => array(
        'weight' => 1,
        'status' => 1,
      ),
      // Line break filter.
      'filter_autop' => array(
        'weight' => 2,
        'status' => 1,
      ),
      // HTML corrector filter.
      'filter_htmlcorrector' => array(
        'weight' => 10,
        'status' => 1,
      ),
    ),
  );
  $filtered_html_format = (object) $filtered_html_format;
  filter_format_save($filtered_html_format);
}