1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* media_ckeditor_settings.features.filter.inc
|
6
|
*/
|
7
|
|
8
|
/**
|
9
|
* Implements hook_filter_default_formats().
|
10
|
*/
|
11
|
function media_ckeditor_settings_filter_default_formats() {
|
12
|
$formats = array();
|
13
|
|
14
|
// Exported format: Filtered HTML.
|
15
|
$formats['filtered_html'] = array(
|
16
|
'format' => 'filtered_html',
|
17
|
'name' => 'Filtered HTML',
|
18
|
'cache' => 1,
|
19
|
'status' => 1,
|
20
|
'weight' => 0,
|
21
|
'filters' => array(
|
22
|
'media_filter_paragraph_fix' => array(
|
23
|
'weight' => -49,
|
24
|
'status' => 1,
|
25
|
'settings' => array(
|
26
|
'replace' => 1,
|
27
|
),
|
28
|
),
|
29
|
'filter_html' => array(
|
30
|
'weight' => -48,
|
31
|
'status' => 1,
|
32
|
'settings' => array(
|
33
|
'allowed_html' => '<a> <em> <strong> <cite> <blockquote> <code> <img> <h2> <h1> <h3> <div> <span> <section> <b> <ul> <ol> <li> <dl> <dt> <dd> <p> <table> <td> <tr>',
|
34
|
'filter_html_help' => 1,
|
35
|
'filter_html_nofollow' => 0,
|
36
|
),
|
37
|
),
|
38
|
'filter_htmlcorrector' => array(
|
39
|
'weight' => -42,
|
40
|
'status' => 1,
|
41
|
'settings' => array(),
|
42
|
),
|
43
|
'media_filter' => array(
|
44
|
'weight' => -41,
|
45
|
'status' => 1,
|
46
|
'settings' => array(),
|
47
|
),
|
48
|
),
|
49
|
);
|
50
|
|
51
|
// Exported format: Full HTML.
|
52
|
$formats['full_html'] = array(
|
53
|
'format' => 'full_html',
|
54
|
'name' => 'Full HTML',
|
55
|
'cache' => 1,
|
56
|
'status' => 1,
|
57
|
'weight' => 1,
|
58
|
'filters' => array(
|
59
|
'filter_htmlcorrector' => array(
|
60
|
'weight' => -43,
|
61
|
'status' => 1,
|
62
|
'settings' => array(),
|
63
|
),
|
64
|
'media_filter_paragraph_fix' => array(
|
65
|
'weight' => -42,
|
66
|
'status' => 1,
|
67
|
'settings' => array(
|
68
|
'replace' => 1,
|
69
|
),
|
70
|
),
|
71
|
'media_filter' => array(
|
72
|
'weight' => -41,
|
73
|
'status' => 1,
|
74
|
'settings' => array(),
|
75
|
),
|
76
|
),
|
77
|
);
|
78
|
|
79
|
// Exported format: Plain text.
|
80
|
$formats['plain_text'] = array(
|
81
|
'format' => 'plain_text',
|
82
|
'name' => 'Plain text',
|
83
|
'cache' => 1,
|
84
|
'status' => 1,
|
85
|
'weight' => 10,
|
86
|
'filters' => array(
|
87
|
'filter_html_escape' => array(
|
88
|
'weight' => 0,
|
89
|
'status' => 1,
|
90
|
'settings' => array(),
|
91
|
),
|
92
|
'filter_url' => array(
|
93
|
'weight' => 1,
|
94
|
'status' => 1,
|
95
|
'settings' => array(
|
96
|
'filter_url_length' => 72,
|
97
|
),
|
98
|
),
|
99
|
'filter_autop' => array(
|
100
|
'weight' => 2,
|
101
|
'status' => 1,
|
102
|
'settings' => array(),
|
103
|
),
|
104
|
),
|
105
|
);
|
106
|
|
107
|
return $formats;
|
108
|
}
|