public function EntityLegalDocument::getAcceptanceDeliveryMethod in Entity Legal 7.2
Same name and namespace in other branches
- 7 entity_legal.entity.inc \EntityLegalDocument::getAcceptanceDeliveryMethod()
Get the acceptance delivery method for a given user type.
Parameters
bool $new_user: Get the method for new signups or existing accounts.
Return value
string The acceptance delivery method.
File
- ./
entity_legal.entity.inc, line 334 - Entity API main classes used by entity_legal module.
Class
- EntityLegalDocument
- Legal Document entity with revision support.
Code
public function getAcceptanceDeliveryMethod($new_user = FALSE) {
$setting_group = $new_user ? 'new_users' : 'existing_users';
return $this
->getSetting($setting_group, 'require_method');
}