Révision 3dfa8105
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/ds/ds.api.php | ||
---|---|---|
420 | 420 |
* - entity_type |
421 | 421 |
* - bundle |
422 | 422 |
* - view_mode |
423 |
* @param array $vars |
|
424 |
* All variables available for render. You can use this to add css classes. |
|
423 | 425 |
*/ |
424 |
function hook_ds_pre_render_alter(&$layout_render_array, $context) { |
|
426 |
function hook_ds_pre_render_alter(&$layout_render_array, $context, &$vars) {
|
|
425 | 427 |
$layout_render_array['left'][] = array('#markup' => 'cool!', '#weight' => 20); |
428 |
$vars['attributes_array']['class'][] = 'custom'; |
|
426 | 429 |
} |
427 | 430 |
|
428 | 431 |
/** |
... | ... | |
593 | 596 |
} |
594 | 597 |
} |
595 | 598 |
|
599 |
/** |
|
600 |
* Alter the field template settings form |
|
601 |
* |
|
602 |
* @param array $form |
|
603 |
* The form containing the field settings |
|
604 |
* @param array $field_settings |
|
605 |
* The settings of the field |
|
606 |
*/ |
|
607 |
function hook_ds_field_theme_functions_settings_alter(&$form, $field_settings) { |
|
608 |
$form['something'] = array( |
|
609 |
'#type' => 'textfield', |
|
610 |
'#title' => 'test', |
|
611 |
); |
|
612 |
} |
|
613 |
|
|
596 | 614 |
/* |
597 | 615 |
* @} End of "addtogroup hooks". |
598 | 616 |
*/ |
Formats disponibles : Unified diff
Weekly update of contrib modules