function sheetnode_admin_settings in Sheetnode 5
Same name and namespace in other branches
- 6 sheetnode.module \sheetnode_admin_settings()
- 7.2 sheetnode.module \sheetnode_admin_settings()
- 7 sheetnode.module \sheetnode_admin_settings()
1 string reference to 'sheetnode_admin_settings'
- sheetnode_menu in ./
sheetnode.module - Implementation of hook_menu().
File
- ./
sheetnode.module, line 283
Code
function sheetnode_admin_settings() {
$form['sheetnode_view_mode'] = array(
'#type' => 'radios',
'#title' => t('View mode'),
'#description' => t('Select the way sheetnodes should be displayed in view mode.'),
'#options' => array(
SHEETNODE_VIEW_READONLY => t('Read-only spreadsheet'),
SHEETNODE_VIEW_FIDDLE => t('Fiddle mode (interactive spreadsheet without save functionality)'),
SHEETNODE_VIEW_HTML => t('HTML table'),
),
'#default_value' => variable_get('sheetnode_view_mode', SHEETNODE_VIEW_FIDDLE),
);
$form['sheetnode_view_toolbar'] = array(
'#type' => 'checkbox',
'#title' => t('Show toolbar in view mode'),
'#default_value' => variable_get('sheetnode_view_toolbar', FALSE),
);
return system_settings_form($form);
}