You are here

public function EntityLegalMethodProfileForm::getProfileFormMethodDocuments in Entity Legal 7

Same name and namespace in other branches
  1. 7.2 methods/entity_legal.profile_form.inc \EntityLegalMethodProfileForm::getProfileFormMethodDocuments()

Get all legal document entities with profile form methods.

Return value

array All documents that have profile form methods.

1 call to EntityLegalMethodProfileForm::getProfileFormMethodDocuments()
EntityLegalMethodProfileForm::execute in methods/entity_legal.profile_form.inc
Execution method for profile form method.

File

methods/entity_legal.profile_form.inc, line 17
Method include file for 'form_link' and 'form_inline'.

Class

EntityLegalMethodProfileForm
Method class for displaying a checkbox on the user register form.

Code

public function getProfileFormMethodDocuments() {
  $documents = $this
    ->getDocumentsForMethod('form_link', ENTITY_LEGAL_USER_ANONYMOUS);
  $documents += $this
    ->getDocumentsForMethod('form_inline', ENTITY_LEGAL_USER_ANONYMOUS);
  return $documents;
}