public function UcAddressesUcFieldHandler::isFieldRequired in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 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());
}