Révision eefc2ac0
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/themes/bootstrap/bootstrap.api.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 | 5 |
* List of available hook and alter APIs for use in your sub-theme. |
... | ... | |
21 | 22 |
* |
22 | 23 |
* @see _bootstrap_colorize_text() |
23 | 24 |
*/ |
24 |
function hook_bootstrap_colorize_text_alter(&$texts) { |
|
25 |
function hook_bootstrap_colorize_text_alter(array &$texts) {
|
|
25 | 26 |
// This matches the exact string: "My Unique Button Text". |
26 | 27 |
$texts['matches'][t('My Unique Button Text')] = 'primary'; |
27 | 28 |
|
... | ... | |
45 | 46 |
* |
46 | 47 |
* @see _bootstrap_iconize_text() |
47 | 48 |
*/ |
48 |
function hook_bootstrap_iconize_text_alter(&$texts) { |
|
49 |
function hook_bootstrap_iconize_text_alter(array &$texts) {
|
|
49 | 50 |
// This matches the exact string: "My Unique Button Text". |
50 | 51 |
$texts['matches'][t('My Unique Button Text')] = 'heart'; |
51 | 52 |
|
... | ... | |
88 | 89 |
* @see form_builder() |
89 | 90 |
* @see drupal_process_form() |
90 | 91 |
*/ |
91 |
function hook_form_process($element, &$form_state, &$form) {
|
|
92 |
function hook_form_process(array $element, array &$form_state, array &$form) {
|
|
92 | 93 |
return $element; |
93 | 94 |
} |
94 | 95 |
|
... | ... | |
124 | 125 |
* @see form_builder() |
125 | 126 |
* @see drupal_process_form() |
126 | 127 |
*/ |
127 |
function hook_form_process_HOOK($element, &$form_state, &$form) {
|
|
128 |
function hook_form_process_HOOK(array $element, array &$form_state, array &$form) {
|
|
128 | 129 |
return $element; |
129 | 130 |
} |
130 | 131 |
|
... | ... | |
150 | 151 |
* |
151 | 152 |
* @see bootstrap_element_info_alter() |
152 | 153 |
*/ |
153 |
function hook_pre_render($element) { |
|
154 |
function hook_pre_render(array $element) {
|
|
154 | 155 |
return $element; |
155 | 156 |
} |
156 | 157 |
|
... | ... | |
180 | 181 |
* |
181 | 182 |
* @see bootstrap_element_info_alter() |
182 | 183 |
*/ |
183 |
function hook_pre_render_HOOK($element) { |
|
184 |
function hook_pre_render_HOOK(array $element) {
|
|
184 | 185 |
return $element; |
185 | 186 |
} |
186 | 187 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules