Révision 136a805a
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/ctools/ctools_custom_content/plugins/export_ui/ctools_custom_content_ui.class.php | ||
---|---|---|
23 | 23 |
'#title' => t('Title'), |
24 | 24 |
); |
25 | 25 |
|
26 |
$form['title_heading'] = array( |
|
27 |
'#title' => t('Title heading'), |
|
28 |
'#type' => 'select', |
|
29 |
'#default_value' => isset($form_state['item']->settings['title_heading']) ? $form_state['item']->settings['title_heading'] : 'h2', |
|
30 |
'#options' => array( |
|
31 |
'h1' => t('h1'), |
|
32 |
'h2' => t('h2'), |
|
33 |
'h3' => t('h3'), |
|
34 |
'h4' => t('h4'), |
|
35 |
'h5' => t('h5'), |
|
36 |
'h6' => t('h6'), |
|
37 |
'div' => t('div'), |
|
38 |
'span' => t('span'), |
|
39 |
), |
|
40 |
); |
|
41 |
|
|
26 | 42 |
$form['body'] = array( |
27 | 43 |
'#type' => 'text_format', |
28 | 44 |
'#title' => t('Body'), |
... | ... | |
43 | 59 |
|
44 | 60 |
// Since items in our settings are not in the schema, we have to do these manually: |
45 | 61 |
$form_state['item']->settings['title'] = $form_state['values']['title']; |
62 |
$form_state['item']->settings['title_heading'] = $form_state['values']['title_heading']; |
|
46 | 63 |
$form_state['item']->settings['body'] = $form_state['values']['body']['value']; |
47 | 64 |
$form_state['item']->settings['format'] = $form_state['values']['body']['format']; |
48 | 65 |
$form_state['item']->settings['substitute'] = $form_state['values']['substitute']; |
Formats disponibles : Unified diff
Weekly update of contrib modules