You are here

function certificate_get_template_options in Certificate 6.2

Same name and namespace in other branches
  1. 8.3 certificate.module \certificate_get_template_options()
  2. 6 certificate.module \certificate_get_template_options()
  3. 7.3 certificate.module \certificate_get_template_options()
  4. 7.2 certificate.module \certificate_get_template_options()
  5. 3.x certificate.module \certificate_get_template_options()

Return an array of certificate templates suitable for use in an options form element.

File

./certificate.module, line 646
Certificate module.

Code

function certificate_get_template_options() {

  // Get existing templates.
  $templates = certificate_certificate_load_all();
  foreach ($templates as $key => $template) {
    $template_options[$key] = $template['title'];
  }
  return $template_options;
}