function _jquery_ui_filter_admin_settings_fx_options in jQuery UI filter 6
Same name and namespace in other branches
- 7 jquery_ui_filter.admin.inc \_jquery_ui_filter_admin_settings_fx_options()
Get Fx hide or show options.
1 call to _jquery_ui_filter_admin_settings_fx_options()
- jquery_ui_filter_tabs_settings in tabs/
jquery_ui_filter_tabs.admin.inc - Form builder; Tabs settings page for the 'jQuery UI filter' module.
File
- ./
jquery_ui_filter.admin.inc, line 159 - Administration pages for the 'jQuery UI filter' module.
Code
function _jquery_ui_filter_admin_settings_fx_options($default_values = array()) {
$fx_options = array();
$fx_options['opacity'] = array(
'#title' => t('opacity'),
'#type' => 'checkbox',
// Usually the best tab effect is just to use opacity (aka fade in/out)
'#default_value' => !empty($default_values['opacity']),
'#return_value' => 'toggle',
);
$fx_options['height'] = array(
'#title' => t('height'),
'#type' => 'checkbox',
'#default_value' => !empty($default_values['height']),
'#return_value' => 'toggle',
);
// width: [SKIPPED]
// Adjusting the width cause unpredictable results so don't include it.
$fx_options['duration'] = array(
'#title' => t('duration'),
'#type' => 'select',
'#default_value' => !empty($default_values['duration']) ? $default_values['duration'] : 'normal',
'#options' => array(
'normal' => 'normal',
'slow' => 'slow',
'medium' => 'medium',
'fast' => 'fast',
),
);
return $fx_options;
}