You are here

public function UcAddressesUcFieldHandler::isFieldRequired in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 handlers/ubercart.handlers.inc \UcAddressesUcFieldHandler::isFieldRequired()

Implements UcAddressesFieldHandler::isFieldRequired().

Overrides UcAddressesFieldHandler::isFieldRequired

3 calls to UcAddressesUcFieldHandler::isFieldRequired()
UcAddressesUcCountryFieldHandler::getFormField in handlers/ubercart.handlers.inc
Implements UcAddressesFieldHandler::getFormField().
UcAddressesUcTextFieldHandler::getFormField in handlers/ubercart.handlers.inc
Implements UcAddressesFieldHandler::getFormField().
UcAddressesUcZoneFieldHandler::getFormField in handlers/ubercart.handlers.inc
Implements UcAddressesFieldHandler::getFormField().

File

handlers/ubercart.handlers.inc, line 32
Field handlers for Ubercart core address fields: first_name, last_name, company, etc.

Class

UcAddressesUcFieldHandler
Base class for Ubercart core address fields

Code

public function isFieldRequired() {
  if ($this
    ->getContext() == 'order_form') {
    return FALSE;
  }
  return uc_address_field_required($this
    ->getFieldName());
}