function hook_certificate_map_options in Certificate 6
Same name and namespace in other branches
- 8.3 certificate.api.php \hook_certificate_map_options()
- 6.2 certificate.api.php \hook_certificate_map_options()
- 7.3 certificate.api.php \hook_certificate_map_options()
- 7.2 certificate.api.php \hook_certificate_map_options()
- 4.x certificate.api.php \hook_certificate_map_options()
- 3.x certificate.api.php \hook_certificate_map_options()
Implementation of hook_certificate_map_options().
Provide a list of options to the user that can be mapped to certificate templates.
Return value
Array of mapping sets.
2 invocations of hook_certificate_map_options()
- certificate_settings_form in ./
certificate.admin.inc - Form for field mapping allowed values to certificate templates.
- certificate_single in ./
certificate.pages.inc - Generate a single certificate.
File
- ./
certificate.api.php, line 48 - certificate.api.php Document certificate hooks.
Code
function hook_certificate_map_options() {
$options = array(
'sad' => 'Sad',
'happy' => 'Happy',
);
return array(
'mood' => array(
'title' => "User's mood",
'options' => $options,
'description' => 'Using this mapping will award a certificate based on what mood the user is currently in.',
),
);
}