Révision 950416da
Ajouté par Assos Assos il y a plus de 5 ans
drupal7/sites/all/modules/rules/ui/ui.theme.inc | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 | 3 |
/** |
4 |
* @file Rules theme functions |
|
4 |
* @file |
|
5 |
* Rules theme functions. |
|
5 | 6 |
*/ |
6 | 7 |
|
7 |
|
|
8 | 8 |
/** |
9 | 9 |
* Themes a tree of rule elements in a draggable table. |
10 | 10 |
* |
... | ... | |
58 | 58 |
* Themes the rules form for editing the used variables. |
59 | 59 |
* |
60 | 60 |
* @see RulesPluginUI::getVariableForm() |
61 |
* |
|
61 | 62 |
* @ingroup themeable |
62 | 63 |
*/ |
63 | 64 |
function theme_rules_ui_variable_form($variables) { |
64 | 65 |
$elements = $variables['element']; |
65 | 66 |
|
66 | 67 |
$table['#theme'] = 'table'; |
67 |
$table['#header'] = array(t('Data type'), t('Label'), t('Machine name'), t('Usage'), array('data' => t('Weight'), 'class' => array('tabledrag-hide'))); |
|
68 |
$table['#header'] = array( |
|
69 |
t('Data type'), |
|
70 |
t('Label'), |
|
71 |
t('Machine name'), |
|
72 |
t('Usage'), |
|
73 |
array('data' => t('Weight'), 'class' => array('tabledrag-hide')), |
|
74 |
); |
|
68 | 75 |
$table['#attributes']['id'] = 'rules-' . drupal_html_id($elements['#title']) . '-id'; |
69 | 76 |
|
70 | 77 |
foreach (element_children($elements['items']) as $key) { |
... | ... | |
107 | 114 |
|
108 | 115 |
/** |
109 | 116 |
* Themes a view of multiple configuration items. |
117 |
* |
|
110 | 118 |
* @ingroup themeable |
111 | 119 |
*/ |
112 | 120 |
function theme_rules_content_group($variables) { |
... | ... | |
125 | 133 |
|
126 | 134 |
/** |
127 | 135 |
* Themes the view of a single parameter configuration. |
136 |
* |
|
128 | 137 |
* @ingroup themeable |
129 | 138 |
*/ |
130 | 139 |
function theme_rules_parameter_configuration($variables) { |
... | ... | |
149 | 158 |
|
150 | 159 |
/** |
151 | 160 |
* Themes info about variables. |
161 |
* |
|
152 | 162 |
* @ingroup themeable |
153 | 163 |
*/ |
154 | 164 |
function theme_rules_variable_view($variables) { |
... | ... | |
169 | 179 |
|
170 | 180 |
/** |
171 | 181 |
* Themes help for using the data selector. |
182 |
* |
|
172 | 183 |
* @ingroup themeable |
173 | 184 |
*/ |
174 | 185 |
function theme_rules_data_selector_help($variables) { |
... | ... | |
193 | 204 |
); |
194 | 205 |
foreach (RulesData::matchingDataSelector($variables_info, $param_info) as $selector => $info) { |
195 | 206 |
$info += array('label' => '', 'description' => ''); |
196 |
$render['table']['#rows'][] = array(check_plain($selector), check_plain(drupal_ucfirst($info['label'])), check_plain($info['description'])); |
|
207 |
$render['table']['#rows'][] = array( |
|
208 |
check_plain($selector), |
|
209 |
check_plain(drupal_ucfirst($info['label'])), |
|
210 |
check_plain($info['description']), |
|
211 |
); |
|
197 | 212 |
} |
198 | 213 |
return drupal_render($render); |
199 | 214 |
} |
200 | 215 |
|
201 | 216 |
/** |
202 | 217 |
* Themes the rules log debug output. |
218 |
* |
|
203 | 219 |
* @ingroup themeable |
204 | 220 |
*/ |
205 | 221 |
function theme_rules_log($variables) { |
... | ... | |
230 | 246 |
|
231 | 247 |
/** |
232 | 248 |
* Theme rules debug log elements. |
249 |
* |
|
233 | 250 |
* @ingroup themeable |
234 | 251 |
*/ |
235 | 252 |
function theme_rules_debug_element($variables) { |
... | ... | |
248 | 265 |
|
249 | 266 |
/** |
250 | 267 |
* Themes rules autocomplete forms. |
268 |
* |
|
251 | 269 |
* @ingroup themeable |
252 | 270 |
*/ |
253 | 271 |
function theme_rules_autocomplete($variables) { |
... | ... | |
278 | 296 |
|
279 | 297 |
/** |
280 | 298 |
* General theme function for displaying settings related help. |
299 |
* |
|
281 | 300 |
* @ingroup themeable |
282 | 301 |
*/ |
283 | 302 |
function theme_rules_settings_help($variables) { |
Formats disponibles : Unified diff
Weekly update of contrib modules