/[drupal]/contributions/modules/flexifilter/flexifilter.flexifilters.inc
ViewVC logotype

Contents of /contributions/modules/flexifilter/flexifilter.flexifilters.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download) (as text)
Tue Jan 22 00:48:28 2008 UTC (22 months ago) by cwgordon7
Branch: MAIN
CVS Tags: DRUPAL-6--1-1-RC1, DRUPAL-6--1-1-rc1, DRUPAL-6--1-1-RC2, HEAD
Branch point for: DRUPAL-6--1, DRUPAL-6--2
Changes since 1.3: +180 -122 lines
File MIME type: text/x-php
General commit.
1 <?php
2 // $Id: flexifilter.flexifilters.inc,v 1.3 2008/01/21 21:04:32 cwgordon7 Exp $
3
4 /**
5 * Implementation of hook_flexifilters.
6 */
7 function flexifilter_flexifilters() {
8 return array(
9 array(
10 'label' => 'Mediawiki Format',
11 'description' => 'This is an example format which provides a wikimedia-style input format.',
12 'id' => '1',
13 'enabled' => true,
14 'advanced' => true,
15 'delta' => '0',
16 'components' => array(
17 array(
18 'class' => 'flexifilter_text_prepend',
19 'settings' => array(
20 'text' => '</nowiki>',
21 'step' => 'process',
22 ),
23 'id' => '2',
24 ),
25 array(
26 'class' => 'flexifilter_text_append',
27 'settings' => array(
28 'text' => '<nowiki>',
29 'step' => 'process',
30 ),
31 'id' => '3',
32 ),
33 array(
34 'class' => 'flexifilter_chunk_grab',
35 'settings' => array(
36 'starts' => '</nowiki>',
37 'ends' => '<nowiki>',
38 'pass_limits' => 0,
39 'case_sensitive' => 0,
40 'include_rest' => 1,
41 'step' => 'process',
42 'components' => array(
43 array(
44 'class' => 'flexifilter_text_alternation',
45 'settings' => array(
46 'find' => '====',
47 'replace' => "<h4>\n</h4>",
48 'step' => 'process',
49 ),
50 'id' => '5',
51 ),
52 array(
53 'class' => 'flexifilter_text_alternation',
54 'settings' => array(
55 'find' => '===',
56 'replace' => "<h3>\n</h3>",
57 'step' => 'process',
58 ),
59 'id' => '6',
60 ),
61 array(
62 'class' => 'flexifilter_text_alternation',
63 'settings' => array(
64 'find' => '==',
65 'replace' => "<h2>\n</h2>",
66 'step' => 'process',
67 ),
68 'id' => '7',
69 ),
70 array(
71 'class' => 'flexifilter_text_alternation',
72 'settings' => array(
73 'find' => '\'\'\'',
74 'replace' => "<strong>\n</strong>",
75 'step' => 'process',
76 ),
77 'id' => '8',
78 ),
79 array(
80 'class' => 'flexifilter_text_alternation',
81 'settings' => array(
82 'find' => '\'\'',
83 'replace' => "<em>\n</em>",
84 'step' => 'process',
85 ),
86 'id' => '9',
87 ),
88 array(
89 'class' => 'flexifilter_chunk_grab',
90 'settings' => array(
91 'starts' => '[[',
92 'ends' => ']]',
93 'pass_limits' => 0,
94 'case_sensitive' => 0,
95 'include_rest' => 1,
96 'step' => 'process',
97 'components' => array(
98 array(
99 'class' => 'flexifilter_control_if',
100 'settings' => array(
101 'components' => array(
102 array(
103 'class' => 'flexifilter_text_replace',
104 'settings' => array(
105 'find' => '~',
106 'replace' => '\\~',
107 'step' => 'process',
108 ),
109 'id' => '12',
110 ),
111 array(
112 'class' => 'flexifilter_text_append',
113 'settings' => array(
114 'text' => '~~',
115 'step' => 'process',
116 ),
117 'id' => '13',
118 ),
119 array(
120 'class' => 'flexifilter_advanced_append',
121 'settings' => array(
122 'step' => 'process',
123 'components' => array(
124 array(
125 'class' => 'flexifilter_text_replace',
126 'settings' => array(
127 'find' => '~~',
128 'replace' => '</a>',
129 'step' => 'process',
130 ),
131 'id' => '23',
132 ),
133 ),
134 ),
135 'id' => '14',
136 ),
137 array(
138 'class' => 'flexifilter_text_replace',
139 'settings' => array(
140 'find' => '~~',
141 'replace' => '">',
142 'step' => 'process',
143 ),
144 'id' => '26',
145 ),
146 array(
147 'class' => 'flexifilter_text_prepend',
148 'settings' => array(
149 'text' => '<a href="http://en.wikipedia.org/wiki/',
150 'step' => 'process',
151 ),
152 'id' => '24',
153 ),
154 array(
155 'class' => 'flexifilter_text_replace',
156 'settings' => array(
157 'find' => '\\~',
158 'replace' => '~',
159 'step' => 'process',
160 ),
161 'id' => '28',
162 ),
163 ),
164 'condition' => array(
165 'class' => 'flexifilter_group_not',
166 'settings' => array(
167 'conditions' => array(
168 array(
169 'class' => 'flexifilter_text_search',
170 'settings' => array(
171 'find' => '|',
172 'is_regex' => 0,
173 ),
174 ),
175 ),
176 ),
177 ),
178 ),
179 'id' => '11',
180 ),
181 array(
182 'class' => 'flexifilter_control_if',
183 'settings' => array(
184 'components' => array(
185 array(
186 'class' => 'flexifilter_text_prepend',
187 'settings' => array(
188 'text' => '<a href="http://en.wikipedia.org/wiki/',
189 'step' => 'process',
190 ),
191 'id' => '33',
192 ),
193 array(
194 'class' => 'flexifilter_text_replace',
195 'settings' => array(
196 'find' => '|',
197 'replace' => '">',
198 'step' => 'process',
199 ),
200 'id' => '34',
201 ),
202 array(
203 'class' => 'flexifilter_text_append',
204 'settings' => array(
205 'text' => '</a>',
206 'step' => 'process',
207 ),
208 'id' => '35',
209 ),
210 ),
211 'condition' => array(
212 'class' => 'flexifilter_text_search',
213 'settings' => array(
214 'find' => '|',
215 'is_regex' => 0,
216 ),
217 ),
218 ),
219 'id' => '32',
220 ),
221 ),
222 ),
223 'id' => '10',
224 ),
225 ),
226 ),
227 'id' => '4',
228 ),
229 'id_next' => 37,
230 'id_prefix' => 'flexifilter_component_',
231 ),
232 'fid' => 'new',
233 ),
234 );
235 }

  ViewVC Help
Powered by ViewVC 1.1.2