You are here

function soundmanager2_admin in SoundManager2 6

Same name and namespace in other branches
  1. 6.2 soundmanager2.module \soundmanager2_admin()
  2. 7.2 soundmanager2.module \soundmanager2_admin()
1 string reference to 'soundmanager2_admin'
soundmanager2_menu in ./soundmanager2.module

File

./soundmanager2.module, line 43

Code

function soundmanager2_admin() {
  $form = array();
  $form['sm2-debug-mode'] = array(
    '#type' => 'checkbox',
    '#title' => t('Activate Debug Mode'),
    '#default_value' => variable_get('sm2-debug-mode', false),
    '#description' => t("If checked, the sm2 module will output debug text in the block."),
  );
  $form['sm2-path'] = array(
    '#type' => 'textfield',
    '#title' => t('Path to soundmanager2 files'),
    '#default_value' => variable_get('sm2-path', 'sites/all/shared/soundmanager2'),
    '#description' => t('Path to the soundmanager2 files. No trailing and beggining backslash. Download SoundManager2 from <a href="http://www.schillmania.com/projects/soundmanager2/doc/download/">here</a>.'),
    '#size' => 60,
    '#maxlength' => 128,
    '#required' => TRUE,
  );
  return system_settings_form($form);
}