You are here

function gdpr_consent_agreement_load_multiple_by_name in General Data Protection Regulation 7

Gets an array of all agreements, keyed by the machine name.

1 string reference to 'gdpr_consent_agreement_load_multiple_by_name'
gdpr_consent_agreement_form in modules/gdpr_consent/includes/gdpr_consent.admin.inc
Form for managing a consent agreement entity.

File

modules/gdpr_consent/gdpr_consent.module, line 289
Contains hook implementations and shared functions.

Code

function gdpr_consent_agreement_load_multiple_by_name($name = NULL) {
  $signups = entity_load_multiple_by_name('gdpr_consent_agreement', isset($name) ? array(
    $name,
  ) : FALSE);
  return isset($name) ? reset($signups) : $signups;
}