Overview

Drupal forms supported:

  1. Add New Profile Field (/admin/user/profile/add/*)
  2. Edit Profile Field (/admin/user/profile/edit/*)
  3. Delete Profile Field (/admin/user/profile/delete/*)

Available actions:

  1. profile

Depends on the following modules:

  1. 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>