summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module17
1 files changed, 8 insertions, 9 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 13479217f..923230804 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -838,17 +838,16 @@ function user_search_execute($keys = NULL) {
}
/**
- * Implement hook_elements().
+ * Implement hook_element_info().
*/
-function user_elements() {
- return array(
- 'user_profile_category' => array(
- '#theme_wrappers' => array('user_profile_category')
- ),
- 'user_profile_item' => array(
- '#theme' => 'user_profile_item'
- ),
+function user_element_info() {
+ $types['user_profile_category'] = array(
+ '#theme_wrappers' => array('user_profile_category'),
+ );
+ $types['user_profile_item'] = array(
+ '#theme' => 'user_profile_item',
);
+ return $types;
}
/**