You are here

function _sheetnode_phpexcel_settings in Sheetnode 6

Same name and namespace in other branches
  1. 5 modules/sheetnode_phpexcel/sheetnode_phpexcel.module \_sheetnode_phpexcel_settings()
  2. 7.2 modules/sheetnode_phpexcel/sheetnode_phpexcel.module \_sheetnode_phpexcel_settings()
  3. 7 modules/sheetnode_phpexcel/sheetnode_phpexcel.module \_sheetnode_phpexcel_settings()

Form function for admin/settings/sheetnode/phpexcel.

1 string reference to '_sheetnode_phpexcel_settings'
sheetnode_phpexcel_menu in modules/sheetnode_phpexcel/sheetnode_phpexcel.module
Implementation of hook_menu().

File

modules/sheetnode_phpexcel/sheetnode_phpexcel.module, line 232

Code

function _sheetnode_phpexcel_settings() {
  $form['sheetnode_phpexcel_library_path'] = array(
    '#type' => 'textfield',
    '#title' => t('PHPExcel path'),
    '#description' => t('Enter the full path of the extracted PHPExcel package.'),
    '#default_value' => variable_get('sheetnode_phpexcel_library_path', ''),
  );
  $form['sheetnode_phpexcel_export_links'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display export links'),
    '#description' => t('Check this ON to display "Save as ..." links on every sheetnode page.'),
    '#default_value' => variable_get('sheetnode_phpexcel_export_links', TRUE),
  );
  $form['sheetnode_phpexcel_pdf_renderer_path'] = array(
    '#type' => 'textfield',
    '#title' => t('TCPDF path'),
    '#description' => t('Enter the full path of the TCPDF rendering library.'),
    '#default_value' => variable_get('sheetnode_phpexcel_pdf_renderer_path', ''),
  );
  $form['#validate'][] = '_sheetnode_phpexcel_settings_validate';
  return system_settings_form($form);
}