function open_readspeaker_block_configure in Open ReadSpeaker 7
Implements hook_block_configure().
File
- ./
open_readspeaker.module, line 68 - Open ReadSpeaker
Code
function open_readspeaker_block_configure($delta = '') {
$form = array();
if ($delta == 'open_readspeaker_ui') {
$form['settings'] = array(
'#title' => t('Custom settings for ReadSpeaker'),
'#description' => t('Custom settings.'),
'#type' => 'fieldset',
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['settings']['open_readspeaker_buttonstyle'] = array(
'#title' => t('Style attribute for the ReadSpeaker Button'),
'#description' => t('Set a style attribute for the ReadSpeaker Button.'),
'#type' => 'textfield',
'#default_value' => variable_get('open_readspeaker_buttonstyle', ''),
);
$form['settings']['open_readspeaker_reading_area'] = array(
'#title' => t('Reading area ID'),
'#description' => t('Specify content using HTML ID attribute.'),
'#type' => 'textfield',
'#default_value' => variable_get('open_readspeaker_reading_area', 'rs_read_this'),
);
$form['settings']['open_readspeaker_customparam'] = array(
'#title' => t('Custom script parameters'),
'#description' => t('Input any custom parameters given to you by ReadSpeaker Support here.'),
'#type' => 'textfield',
'#default_value' => variable_get('open_readspeaker_customparam', ''),
);
}
return $form;
}