function certificate_get_template_options in Certificate 3.x
Same name and namespace in other branches
- 8.3 certificate.module \certificate_get_template_options()
- 6.2 certificate.module \certificate_get_template_options()
- 6 certificate.module \certificate_get_template_options()
- 7.3 certificate.module \certificate_get_template_options()
- 7.2 certificate.module \certificate_get_template_options()
Return an array of certificate templates suitable for use in an options form element.
File
- ./
certificate.module, line 680 - 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;
}