function site_status_message_preprocess_site_status_message in Site Status Message 7
Implements hook_preprocess_HOOK().
Preprocess function for the theme template.
File
- ./
site_status_message.module, line 114 - Site Status Message provides a configurable page top message.
Code
function site_status_message_preprocess_site_status_message(&$variables) {
$path = drupal_get_normal_path($variables['link']);
if (variable_get('site_status_message_showlink', '') && drupal_valid_path($path)) {
$readmore = filter_xss(variable_get('site_status_message_readmore', 'Read more'));
$variables['link'] = l($readmore, $path);
}
else {
$variables['link'] = NULL;
}
$variables['message'] = filter_xss($variables['message']);
}