Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Overview
Drupal forms supported:
- Add New Profile Field (/admin/user/profile/add/*)
- Edit Profile Field (/admin/user/profile/edit/*)
- Delete Profile Field (/admin/user/profile/delete/*)
Available actions:
- profile
Depends on the following modules:
- profile
Valid elements for "profile" action
- type - field type (see below)
- category
- title - title shown to the user (unique within each category)
- name - form name (unique, required)
- explanation
- visibility
- page - page title
- weight
- autocomplete
- required
- register - visible in user registration form
- options - selection options (used only by "selection" field type)
valid field types
- textfield - single-line textfield
- textarea - multi-line textfield
- checkbox
- selection - list selection (the only type that uses options element)
- list - freeform list
- url
- date
Value of "category" element is case-sensitive.
Examples
YAML
- tag: profile
type: selection
category: Personal
title: Favorite Car
name: profile_car
visibility: 2
page: "People whose favorite car is: %value"
weight: -2
autocomplete: 0
required: 1
register: 0
options:
- Mercedes
- BMW
- Audi
- Toyota
XML
<profile>
<type>selection</type>
<category>Personal</category>
<title>Favorite Car</title>
<name>profile_car</name>
<visibility>2</visibility>
<page>People whose favorite car is: %value</page>
<weight>5</weight>
<autocomplete>0</autocomplete>
<required>0</required>
<register>1</register>
<options>
<value>Mercedes</value>
<value>BMW</value>
<value>Audi</value>
<value>Toyota</value>
</options>
</profile>