function scrolltext_settings_form in ScrollText 5
Same name and namespace in other branches
- 6 scrolltext.module \scrolltext_settings_form()
- 7 scrolltext.admin.inc \scrolltext_settings_form()
1 string reference to 'scrolltext_settings_form'
- scrolltext_menu in ./
scrolltext.module - Menu callback. Prints a listing of active nodes on the site.
File
- ./
scrolltext.module, line 45 - This module used for scrolling text from node title
Code
function scrolltext_settings_form() {
$form['scrolltext_general'] = array(
'#type' => 'fieldset',
'#title' => t('General settings'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#description' => t('Remember to enable the ScrollText on Drupal !blocks . CSS id is "scrollttext" to theming ScrollText.', array(
'!blocks' => l('blocks', 'admin/build/block'),
)),
);
$form['scrolltext_general']['scrolltext_speed'] = array(
'#type' => 'textfield',
'#title' => t('Scroll Speed'),
'#default_value' => variable_get('scrolltext_speed', '1'),
);
$form['scrolltext_general']['scrolltext_width'] = array(
'#type' => 'textfield',
'#title' => t('Scroll Width'),
'#default_value' => variable_get('scrolltext_width', '100%'),
);
$form['scrolltext_general']['scrolltext_height'] = array(
'#type' => 'textfield',
'#title' => t('Scroll Height'),
'#default_value' => variable_get('scrolltext_height', '100'),
);
$form['scrolltext_general']['scrolltext_nodetype'] = array(
'#type' => 'textfield',
'#title' => t('Node Type'),
'#default_value' => variable_get('scrolltext_nodetype', 'page,story'),
'#description' => t('<p>Get title from certain node type, i.e: page,story</p>'),
);
$form['scrolltext_general']['scrolltext_count'] = array(
'#type' => 'textfield',
'#title' => t('Title Count'),
'#default_value' => variable_get('scrolltext_count', '10'),
'#description' => t('<p>How many new title would you like to scrol? NOTE: greater number will cause you website slowly!</p>'),
);
return system_settings_form($form);
}