You are here

function soundmanager2_admin in SoundManager2 7.2

Same name and namespace in other branches
  1. 6.2 soundmanager2.module \soundmanager2_admin()
  2. 6 soundmanager2.module \soundmanager2_admin()

Page callback for the admin page.

1 string reference to 'soundmanager2_admin'
soundmanager2_menu in ./soundmanager2.module
Implements hook_menu().

File

./soundmanager2.module, line 201
Responsible for managing the required SWF and JS files for soundmanager2 to work

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 SoundManager 2 module will output debug text in the block.'),
  );
  $form['sm2_path'] = array(
    '#type' => 'textfield',
    '#title' => t('Path to SoundManager 2 files'),
    '#default_value' => variable_get('sm2_path', 'sites/all/libraries/soundmanager2'),
    '#description' => t('Path to the SoundManager 2 files. No trailing or beggining backslash. <a href="http://www.schillmania.com/projects/soundmanager2/doc/download/">Download SoundManager 2</a>.'),
    '#size' => 60,
    '#maxlength' => 128,
    '#required' => TRUE,
  );
  return system_settings_form($form);
}