function site_status_message_variable_info in Site Status Message 7
Implements hook_variable_info().
File
- ./
site_status_message.variable.inc, line 28 - Site Status Message Variables File.
Code
function site_status_message_variable_info($options) {
$variable['site_status_message_message'] = array(
'title' => t('Status message', array(), $options),
'description' => t('A message to display at the top of each page.', array(), $options),
'localize' => TRUE,
'group' => 'site_status_message',
'type' => 'string',
);
$variable['site_status_message_showlink'] = array(
'title' => t('Read more page', array(), $options),
'description' => t('Optional "Read More" link to provide the viewer with more information.', array(), $options),
'localize' => TRUE,
'group' => 'site_status_message',
'type' => 'boolean',
);
$variable['site_status_message_link'] = array(
'title' => t('More information page', array(), $options),
'description' => t('An optional link to show more information about the status message.', array(), $options),
'localize' => TRUE,
'group' => 'site_status_message',
'type' => 'drupal_path',
'validate callback' => 'site_status_message_link_variable_validate',
);
$variable['site_status_message_readmore'] = array(
'title' => t('More information link', array(), $options),
'description' => t('The text to display on the "More Information" link.', array(), $options),
'localize' => TRUE,
'group' => 'site_status_message',
'type' => 'string',
);
$variable['site_status_message_display_options'] = array(
'title' => t('Where on the site should the message be displayed', array(), $options),
'localize' => TRUE,
'group' => 'site_status_message',
'type' => 'select',
'options' => _site_status_message_get_display_options(),
);
return $variable;
}