Révision 6331c987
Ajouté par Assos Assos il y a environ 10 ans
drupal7/sites/all/modules/variable/variable.api.php | ||
---|---|---|
84 | 84 |
* - "repeat": Array of variable properties for children variables. |
85 | 85 |
* - "localize": Boolean value, TRUE for variables that should be localized. This may be used by other modules. |
86 | 86 |
* - "validate callback": Callback to validate the variable value, it will be added to form element #validate. |
87 |
* |
|
88 |
* @see hook_variable_info_alter() |
|
87 | 89 |
*/ |
88 | 90 |
function hook_variable_info($options) { |
89 | 91 |
$variables['site_name'] = array( |
... | ... | |
102 | 104 |
return $variables; |
103 | 105 |
} |
104 | 106 |
|
107 |
/** |
|
108 |
* Alter the variable definitions. |
|
109 |
* |
|
110 |
* @param $info |
|
111 |
* The variable info array, keyed by variable name. |
|
112 |
* |
|
113 |
* @see hook_variable_info() |
|
114 |
*/ |
|
115 |
function hook_variable_info_alter(&$info) { |
|
116 |
} |
|
117 |
|
|
105 | 118 |
/** |
106 | 119 |
* Define types of variables or list of values used by a module. |
107 | 120 |
* |
... | ... | |
145 | 158 |
* |
146 | 159 |
* A special attribute: |
147 | 160 |
* - "type": Variable subtype, the properties for the subtype will be added to these ones. |
161 |
* |
|
162 |
* @see hook_variable_type_info_alter() |
|
148 | 163 |
*/ |
149 | 164 |
function hook_variable_type_info() { |
150 | 165 |
$type['mail_address'] = array( |
... | ... | |
162 | 177 |
return $type; |
163 | 178 |
} |
164 | 179 |
|
180 |
/** |
|
181 |
* Alter the variable type definitions. |
|
182 |
* |
|
183 |
* @param $info |
|
184 |
* The variable type info array, keyed by variable type name. |
|
185 |
* |
|
186 |
* @see hook_variable_type_info() |
|
187 |
*/ |
|
188 |
function hook_variable_type_info_alter(&$info) { |
|
189 |
} |
|
190 |
|
|
165 | 191 |
/** |
166 | 192 |
* Define groups of variables used by a module. |
167 | 193 |
* |
... | ... | |
181 | 207 |
* - "description": The human readable description of the group. Must be localized. |
182 | 208 |
* - "access": Permission required to edit group's variables. Will default to 'administer site configuration'. |
183 | 209 |
* - "path": Array of administration paths where these variables can be accessed. |
210 |
* |
|
211 |
* @see hook_variable_group_info_alter() |
|
184 | 212 |
*/ |
185 | 213 |
function hook_variable_group_info() { |
186 | 214 |
$groups['system_site_information'] = array( |
... | ... | |
197 | 225 |
return $groups; |
198 | 226 |
} |
199 | 227 |
|
228 |
/** |
|
229 |
* Alter the variable group definitions. |
|
230 |
* |
|
231 |
* @param $info |
|
232 |
* The variable type info array, keyed by variable group name. |
|
233 |
* |
|
234 |
* @see hook_variable_group_info() |
|
235 |
*/ |
|
236 |
function hook_variable_group_info_alter(&$info) { |
|
237 |
} |
|
238 |
|
|
200 | 239 |
/** |
201 | 240 |
* Alter system settings forms. |
202 | 241 |
* |
Formats disponibles : Unified diff
Weekly update of contrib modules