You are here

function certificate_types in Certificate 7.3

Same name and namespace in other branches
  1. 8.3 certificate.module \certificate_types()
1 call to certificate_types()
certificate_type_load in ./certificate.module
1 string reference to 'certificate_types'
certificate_type_form in ./certificate.module

File

./certificate.module, line 973
Certificate module.

Code

function certificate_types($type_name = NULL) {
  $types = entity_load_multiple_by_name('certificate_type', isset($type_name) ? array(
    $type_name,
  ) : FALSE);
  return isset($type_name) ? reset($types) : $types;
}