function simplemeta_preprocess_page in Simple Meta 6.2
Implements $module_preprocess_$hook()
File
- ./
simplemeta.module, line 125
Code
function simplemeta_preprocess_page(&$vars) {
if ($meta = simplemeta_get_page_meta()) {
// set page title
if (!empty($meta->data['title'])) {
$vars['head_title'] = check_plain($meta->data['title']);
}
foreach ($meta->view as $item) {
drupal_set_html_head($item);
}
$vars['head'] = drupal_get_html_head();
}
}