function _onepixelout_admin_form in SWF Tools 5
1 call to _onepixelout_admin_form()
- onepixelout_admin_form in onepixelout/
onepixelout.module
File
- onepixelout/
onepixelout.admin.inc, line 6
Code
function _onepixelout_admin_form() {
$saved = _onepixelout_settings('onepixelout_mediaplayer');
$options = _swftools_options();
$form = array();
/*
$form['onepixelout_mediaplayer'] = array(
'#type' => 'fieldset',
'#title' => t('Media Player Flashvars'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
'#description' => 'These are the settings for '.
l('1 Pixel Out', 'http://jeroenonepixelout.com/extras/readme.html')
.' Flash MP3 player.',
);
*/
$form['onepixelout_mediaplayer']['autostart'] = array(
'#type' => 'select',
'#options' => array(
'yes' => 'yes',
'no' => 'no',
),
'#default_value' => $saved['autostart'],
'#title' => t('Autostart'),
'#description' => t('Automatically start playing the MP3. (<em>autostart</em>)'),
);
$form['onepixelout_mediaplayer']['loop'] = array(
'#type' => 'select',
'#options' => array(
'yes' => 'yes',
'no' => 'no',
),
'#default_value' => $saved['loop'],
'#title' => t('Loop'),
'#description' => t('Loop the sound file back to the beginning when done. (<em>loop</em>)'),
);
unset($saved['loop']);
unset($saved['autostart']);
foreach ($saved as $key => $color) {
$form['onepixelout_mediaplayer'][$key] = array(
'#type' => 'textfield',
'#default_value' => $color,
'#size' => 8,
'#maxlength' => 8,
'#title' => t($key . ' color'),
'#description' => t('Hexadecimal color of the format 0xRRGGBB'),
);
}
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}