You are here

function sheetnode_admin_settings in Sheetnode 7

Same name and namespace in other branches
  1. 5 sheetnode.module \sheetnode_admin_settings()
  2. 6 sheetnode.module \sheetnode_admin_settings()
  3. 7.2 sheetnode.module \sheetnode_admin_settings()

Form function for admin/settings/sheetnode.

1 string reference to 'sheetnode_admin_settings'
sheetnode_menu in ./sheetnode.module
Implements hook_menu().

File

./sheetnode.module, line 500
Module file for the sheetnode module.

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);
}