You are here

function vud_admin_advanced_settings in Vote Up/Down 6.2

Same name and namespace in other branches
  1. 6.3 vud.module \vud_admin_advanced_settings()
  2. 7.2 vud.module \vud_admin_advanced_settings()
  3. 7 vud.module \vud_admin_advanced_settings()

Advanced menu settings callback.

1 string reference to 'vud_admin_advanced_settings'
vud_menu in ./vud.module
Implementation of hook_menu().

File

./vud.module, line 38

Code

function vud_admin_advanced_settings() {
  $form['vud_tag'] = array(
    '#type' => 'textfield',
    '#title' => t('Voting API tag'),
    '#default_value' => variable_get('vud_tag', 'vote'),
    '#description' => t('Since Vote Up/Down uses Voting API, all votes will be tagged with this term. (default: vote)<br />This tag is useful is you have deployed various modules that use Voting API. It should always be a unique value. Usually, there is NO need to change this.'),
  );
  $form['vud_message_on_deny'] = array(
    '#type' => 'checkbox',
    '#title' => t('Message on denied permission'),
    '#default_value' => variable_get('vud_message_on_deny', FALSE),
    '#description' => t('When this flag is active, a modal window will be shown to the end user instead of avoid showing the voting links'),
  );
  return system_settings_form($form);
}