You are here

public function UcAddressesUCXFHandler::isFieldRequired in Extra Fields Checkout Pane 7

Same name and namespace in other branches
  1. 6.2 includes/uc_addresses.handlers.inc \UcAddressesUCXFHandler::isFieldRequired()

Check to see if the field is required.

@access public

Return value

boolean TRUE if the field is required.

Overrides UcAddressesFieldHandler::isFieldRequired

1 call to UcAddressesUCXFHandler::isFieldRequired()
UcAddressesUCXFHandler::getFormField in includes/uc_addresses.handlers.inc
Returns the editable field

File

includes/uc_addresses.handlers.inc, line 140
Integration code for Ubercart Addresses 7.x-1.x

Class

UcAddressesUCXFHandler
Field handler for all Extra Fields Pane fields.

Code

public function isFieldRequired() {
  if ($this
    ->getContext() == 'order_form') {
    return FALSE;
  }
  return (bool) $this->ucxf_field->required;
}