Skip to content
Snippets Groups Projects
Select Git revision
  • b41323642bffd3761f73a8c9dc8260546d7533f1
  • 11.x default protected
  • 11.2.x protected
  • 10.5.x protected
  • 10.6.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
  • 10.4.5 protected
  • 11.0.13 protected
41 results

user.module

Blame
  • Angie Byron's avatar
    #517814 by jmstacey, justinrandell, pwolanin, drewish, Jody Lynn, aaron,...
    Angie Byron authored
    #517814 by jmstacey, justinrandell, pwolanin, drewish, Jody Lynn, aaron, dopry, and c960657: Converted File API to stream wrappers, for enhanced private/public file handling, and the ability to reference other storage mechanisms such as s3:// and flicker://.
    b4132364
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    user.module 106.86 KiB
    <?php
    // $Id$
    
    /**
     * @file
     * Enables the user registration and login system.
     */
    
    /**
     * Maximum length of username text field.
     */
    define('USERNAME_MAX_LENGTH', 60);
    
    /**
     * Maximum length of user e-mail text field.
     */
    define('EMAIL_MAX_LENGTH', 64);
    
    
    /**
     * Invokes hook_user() in every module.
     *
     * We cannot use module_invoke() for this, because the arguments need to
     * be passed by reference.
     */
    function user_module_invoke($type, &$edit, $account, $category = NULL) {
      foreach (module_implements('user_' . $type) as $module) {
        $function = $module . '_user_' . $type;
        $function($edit, $account, $category);
      }
    }
    
    /**
     * Implement hook_theme().
     */
    function user_theme() {
      return array(
        'user_picture' => array(
          'arguments' => array('account' => NULL),
          'template' => 'user-picture',
        ),
        'user_profile' => array(
          'arguments' => array('elements' => NULL),
          'template' => 'user-profile',
          'file' => 'user.pages.inc',
        ),
        'user_profile_category' => array(
          'arguments' => array('element' => NULL),
          'template' => 'user-profile-category',
          'file' => 'user.pages.inc',
        ),
        'user_profile_item' => array(
          'arguments' => array('element' => NULL),
          'template' => 'user-profile-item',
          'file' => 'user.pages.inc',
        ),
        'user_list' => array(
          'arguments' => array('users' => NULL, 'title' => NULL),
        ),
        'user_admin_permissions' => array(
          'arguments' => array('form' => NULL),
          'file' => 'user.admin.inc',
        ),
        'user_admin_new_role' => array(
          'arguments' => array('form' => NULL),
          'file' => 'user.admin.inc',
        ),
        'user_admin_account' => array(
          'arguments' => array('form' => NULL),
          'file' => 'user.admin.inc',