Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

User profile fields: Difference between revisions

From MoodleDocs
First draft
 
No edit summary
Line 1: Line 1:
==Introduction==
==Introduction==
This plugin allow you to add custom data fields to be visible on user account.
This plugin allow you to add custom user profile fields, which can be added to user profile. For example, if you want to display radio buttons with some options, then you will need to create profile field plugin.
==History==
==History==
User profile fields exists from 1.9
User profile fields exists from 1.9 and supports five default user profile field plugins:
# Checkbox
# datetime
# menu
# text
# textarea
==Example==
==Example==
==Template==
==Template==
==Naming convention==
==Naming convention==
==Interfacing to API's==
==Interfacing to API's==
==Database tables==
==Database tables==
==FAQ==
===How to add custom user profile field===
Admin can add existing or custom profile fields. Refer [[:en : User profile fields]] for adding user profile fields to user profile.
===Which form elements does moodle support===
Refer [[Form_API]] for list of elements supported by moodle

Revision as of 05:00, 27 January 2012

Introduction

This plugin allow you to add custom user profile fields, which can be added to user profile. For example, if you want to display radio buttons with some options, then you will need to create profile field plugin.

History

User profile fields exists from 1.9 and supports five default user profile field plugins:

  1. Checkbox
  2. datetime
  3. menu
  4. text
  5. textarea

Example

Template

Naming convention

Interfacing to API's

Database tables

FAQ

How to add custom user profile field

Admin can add existing or custom profile fields. Refer en : User profile fields for adding user profile fields to user profile.

Which form elements does moodle support

Refer Form_API for list of elements supported by moodle