Contributions API

avatar_selection.module

Version

1.1.2.22.2.31 (checked in on 2008/04/28 at 15:08:55 by snpower)

Description

The Avatar Selection module allows the user to pick an avatar image from a list already loaded by an administrative user, and to the administrator to disable uploading other avatar files by the user.

Functions

Namesort iconDescription
avatar_selection_accessImplementation of hook_access().
avatar_selection_config_formCreate the form structure for configuring the avatar module settings; seen in the 'Configure' tab under the Avatar Selection administration page.
avatar_selection_config_form_submitSubmit the settings form in the Avatar Selection administration page.
avatar_selection_config_form_validateValidate the submission.
avatar_selection_delete_form_validateValidate the submission.
avatar_selection_edit_delete_form_submitSubmit the image list form in the Avatar Selection - 'Manage Avatars' page.
avatar_selection_edit_formCreate the form structure for listing the avatars and managing them in the 'Manage Avatars' tab under the Avatar Selection administration page.
avatar_selection_edit_list_form_submitSubmit the image list form in the Avatar Selection - 'Manage Avatars' page.
avatar_selection_edit_update_form_submitSubmit the image list form in the Avatar Selection - 'Manage Avatars' page.
avatar_selection_file_downloadImplementation of hook_file_download().
avatar_selection_form_user_profile_form_alterImplementation of hook_form_alter().
avatar_selection_form_user_register_alterImplementation of hook_form_alter().
avatar_selection_get_random_imageSelect a random avatar picture for a certain user.
avatar_selection_handler_filter_roleReturn a list of the existing roles.
avatar_selection_helpImplementation of hook_help().
avatar_selection_image_deleteDelete the specified avatar image.
avatar_selection_menuImplementation of hook_menu().
avatar_selection_permImplementation of hook_perm().
avatar_selection_roles_page
avatar_selection_settings_pageSelect which form will be shown to the user, according to the permissions.
avatar_selection_upload_formCreate the form structure for uploading an avatar.
avatar_selection_upload_form_submitSubmit the image upload form in the Avatar Selection administration page.
avatar_selection_validate_user_avatarValidate and upload the user's picture.
_avatar_selection_image_listGet the list of avatars available to a certain user.
_avatar_selection_save_avatar_infoCreate the SQL queries in order to save the avatar path and data into the database, and perform them according to the SQL server type.
_avatar_selection_scan_imagesScan the directory for new files.