function bear_necessities_filter_default_formats in Bear 7
Same name and namespace in other branches
- 7.2 modules/bear_necessities/bear_necessities.features.filter.inc \bear_necessities_filter_default_formats()
Implements hook_filter_default_formats().
File
- modules/
bear_necessities/ bear_necessities.features.filter.inc, line 10 - bear_necessities.features.filter.inc
Code
function bear_necessities_filter_default_formats() {
$formats = array();
// Exported format: Filtered HTML.
$formats['filtered_html'] = array(
'format' => 'filtered_html',
'name' => 'Filtered HTML',
'cache' => 0,
'status' => 1,
'weight' => -10,
'filters' => array(
'filter_url' => array(
'weight' => 0,
'status' => 1,
'settings' => array(
'filter_url_length' => 72,
),
),
'kill_nbsp' => array(
'weight' => 1,
'status' => 1,
'settings' => array(),
),
'filter_html' => array(
'weight' => 1,
'status' => 1,
'settings' => array(
'allowed_html' => '<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <br> <table> <tr> <td> <thead> <tbody> <th> <u> <s> <h2> <h3> <h4> <h5>',
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
),
),
'assets_filter' => array(
'weight' => 2,
'status' => 1,
'settings' => array(),
),
'filter_htmlcorrector' => array(
'weight' => 10,
'status' => 1,
'settings' => array(),
),
),
);
// Exported format: Full HTML.
$formats['full_html'] = array(
'format' => 'full_html',
'name' => 'Full HTML',
'cache' => 0,
'status' => 1,
'weight' => -9,
'filters' => array(
'filter_url' => array(
'weight' => 0,
'status' => 1,
'settings' => array(
'filter_url_length' => 72,
),
),
'kill_nbsp' => array(
'weight' => 1,
'status' => 1,
'settings' => array(),
),
'filter_autop' => array(
'weight' => 1,
'status' => 1,
'settings' => array(),
),
'assets_filter' => array(
'weight' => 2,
'status' => 1,
'settings' => array(),
),
'filter_htmlcorrector' => array(
'weight' => 10,
'status' => 1,
'settings' => array(),
),
),
);
// Exported format: Plain text.
$formats['plain_text'] = array(
'format' => 'plain_text',
'name' => 'Plain text',
'cache' => 1,
'status' => 1,
'weight' => -8,
'filters' => array(
'filter_html_escape' => array(
'weight' => 0,
'status' => 1,
'settings' => array(),
),
'filter_url' => array(
'weight' => 1,
'status' => 1,
'settings' => array(
'filter_url_length' => 72,
),
),
'filter_autop' => array(
'weight' => 2,
'status' => 1,
'settings' => array(),
),
),
);
return $formats;
}