function hook_certificate_map_options in Certificate 6.2
Same name and namespace in other branches
- 8.3 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()
- 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 functions implement hook_certificate_map_options()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- certificate_certificate_map_options in ./
certificate.module - Implementation of hook_certificate_map_options().
- certificate_test_certificate_map_options in modules/
certificate_test/ certificate_test.module - Implements certificate_map_options().
2 invocations of hook_certificate_map_options()
- certificate_mapping_form in ./
certificate.admin.inc - Add mapping elements to a form.
- 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.',
),
);
}