From f6ccf978f6fc256ca1f17bd8e6b1ae5be4fe8df2 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 10 Jul 2009 05:58:13 +0000 Subject: #488542 by yched: Allow field UI to be attached to any fieldable entity. --- modules/user/user.module | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index 277555038..3072ae2ef 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -89,8 +89,19 @@ function user_theme() { function user_fieldable_info() { $return = array( 'user' => array( - 'name' => t('User'), - 'id key' => 'uid', + 'label' => t('User'), + 'object keys' => array( + 'id' => 'uid', + ), + 'bundles' => array( + 'user' => array( + 'label' => t('User'), + 'admin' => array( + 'path' => 'admin/settings/user', + 'access arguments' => array('administer users'), + ), + ), + ), ), ); return $return; -- cgit v1.2.3