function hook_certificate_map_options in Certificate 4.x
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()
- 6 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()
- 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.
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.',
),
);
}