123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- <?php
- function hook_variable_info($options) {
- $variables['site_name'] = array(
- 'type' => 'string',
- 'title' => t('Name', array(), $options),
- 'default' => 'Drupal',
- 'description' => t('The name of this website.', array(), $options),
- 'required' => TRUE,
- );
- $variables['site_403'] = array(
- 'type' => 'drupal_path',
- 'title' => t('Default 403 (access denied) page', array(), $options),
- 'default' => '',
- 'description' => t('This page is displayed when the requested document is denied to the current user. Leave blank to display a generic "access denied" page.', array(), $options),
- );
- return $variables;
- }
- function hook_variable_info_alter(&$info) {
- }
- function hook_variable_type_info() {
- $type['mail_address'] = array(
- 'title' => t('E-mail address'),
- 'element' => array('#type' => 'textfield'),
- 'token' => TRUE,
- );
- $type['mail_text'] = array(
- 'title' => t('Mail text'),
- 'multiple' => array('subject' => t('Subject'), 'body' => t('Body')),
- 'build callback' => 'variable_build_mail_text',
- 'localize' => TRUE,
- 'type' => 'multiple',
- );
- return $type;
- }
- function hook_variable_type_info_alter(&$info) {
- }
- function hook_variable_group_info() {
- $groups['system_site_information'] = array(
- 'title' => t('Site information'),
- 'description' => t('Site information and maintenance mode'),
- 'access' => 'administer site configuration',
- 'path' => array('admin/config/system/site-information', 'admin/config/development/maintenance'),
- );
- $groups['system_feed_settings'] = array(
- 'title' => t('Feed settings'),
- 'description' => t('Feed settings'),
- 'access' => 'administer site configuration',
- );
- return $groups;
- }
- function hook_variable_group_info_alter(&$info) {
- }
- function hook_variable_settings_form_alter(&$form, &$form_state, $form_id) {
- }
|