user_entity_info

7 user.module user_entity_info()
8 user.module user_entity_info()

Implements hook_entity_info().

File

modules/user/user.module, line 153
Enables the user registration and login system.

Code

function user_entity_info() {
  $return = array(
    'user' => array(
      'label' => t('User'), 
      'controller class' => 'UserController', 
      'base table' => 'users', 
      'uri callback' => 'user_uri', 
      'label callback' => 'format_username', 
      'fieldable' => TRUE, 
      'entity keys' => array(
        'id' => 'uid',
      ), 
      'bundles' => array(
        'user' => array(
          'label' => t('User'), 
          'admin' => array(
            'path' => 'admin/config/people/accounts', 
            'access arguments' => array('administer users'),
          ),
        ),
      ), 
      'view modes' => array(
        'full' => array(
          'label' => t('User account'), 
          'custom settings' => FALSE,
        ),
      ),
    ),
  );
  return $return;
}
Login or register to post comments