Révision 582db59d
Ajouté par Assos Assos il y a plus de 8 ans
drupal7/modules/user/user.api.php | ||
---|---|---|
123 | 123 |
* description is NOT used for the radio button, but instead should provide |
124 | 124 |
* additional explanation to the user seeking to cancel their account. |
125 | 125 |
* - access: (optional) A boolean value indicating whether the user can access |
126 |
* a method. If #access is defined, the method cannot be configured as default
|
|
127 |
* method. |
|
126 |
* a method. If access is defined, the method cannot be configured as the
|
|
127 |
* default method.
|
|
128 | 128 |
* |
129 | 129 |
* @param $methods |
130 | 130 |
* An array containing user account cancellation methods, keyed by method id. |
... | ... | |
183 | 183 |
} |
184 | 184 |
|
185 | 185 |
/** |
186 |
* Retrieve a list of user setting or profile information categories. |
|
186 |
* Define a list of user settings or profile information categories. |
|
187 |
* |
|
188 |
* There are two steps to using hook_user_categories(): |
|
189 |
* - Create the category with hook_user_categories(). |
|
190 |
* - Display that category on the form ID of "user_profile_form" with |
|
191 |
* hook_form_FORM_ID_alter(). |
|
192 |
* |
|
193 |
* Step one builds out the category but it won't be visible on your form until |
|
194 |
* you explicitly tell it to do so. |
|
195 |
* |
|
196 |
* The function in step two should contain the following code in order to |
|
197 |
* display your new category: |
|
198 |
* @code |
|
199 |
* if ($form['#user_category'] == 'mycategory') { |
|
200 |
* // Return your form here. |
|
201 |
* } |
|
202 |
* @endcode |
|
187 | 203 |
* |
188 | 204 |
* @return |
189 | 205 |
* An array of associative arrays. Each inner array has elements: |
Formats disponibles : Unified diff
Update Drupal core to version 7.40