function lti_tool_provider_home_title in LTI Tool Provider 7
Menu title callback for the LTI Home menu item.
Return value
string The title.
1 string reference to 'lti_tool_provider_home_title'
- lti_tool_provider_menu in ./
lti_tool_provider.module - Implements hook_menu().
File
- ./
lti_tool_provider.module, line 246 - lti_tool_provider hook implementations and support functions.
Code
function lti_tool_provider_home_title($title) {
if (key_exists('custom_destination_label', $_SESSION['lti_tool_provider_context_info'])) {
return check_plain($_SESSION['lti_tool_provider_context_info']['custom_destination_label']);
}
if (key_exists('resource_link_title', $_SESSION['lti_tool_provider_context_info'])) {
return check_plain($_SESSION['lti_tool_provider_context_info']['resource_link_title']);
}
return t('Home');
}