function restful_angular_example_delivery in RESTful 7
Custom delivery callback.
Used to override html.tpl.php from the module.
1 string reference to 'restful_angular_example_delivery'
- restful_angular_example_menu in modules/
restful_angular_example/ restful_angular_example.module - Implements hook_menu().
File
- modules/
restful_angular_example/ restful_angular_example.module, line 31 - Example module for the RESTful AngularJs module.
Code
function restful_angular_example_delivery($page_callback_result) {
global $language;
// Pass variables to the template.
$vars = array(
'language' => $language,
'head_title' => drupal_get_title(),
'favicon' => '',
'styles' => drupal_get_css(),
'scripts' => drupal_get_js(),
'messages' => drupal_get_messages(),
'content' => $page_callback_result,
);
echo theme('restful_angular_example_html', $vars);
drupal_page_footer();
}