SproutCMS

This is the code documentation for the SproutCMS project

function outputAddressField()

Generates a single address field for the current locale

Usage

string $LocaleInfo->outputAddressField ( string $field [, string $prefix [, bool $required ]] );

Arguments

  1. string $field
    'street', 'street2', 'town', 'state', or 'postcode'
  2. string $prefix = ''
    Optional prefix, e.g. 'postal_'
  3. bool $required = FALSE
    True if the address as a whole is required, irrespective of the individual field

Return value

  • string