You are here

function opigno_module_form_system_file_system_settings_alter in Opigno module 8

Same name and namespace in other branches
  1. 3.x opigno_module.module \opigno_module_form_system_file_system_settings_alter()

Implements hook_form_FORM_ID_alter().

File

./opigno_module.module, line 1084
Contains opigno_module.module.

Code

function opigno_module_form_system_file_system_settings_alter(&$form, FormStateInterface $form_state, $form_id) {
  $form['file_libreoffice_configs_path'] = [
    '#type' => 'textfield',
    '#title' => t('Libreoffice configs path'),
    '#description' => t('Libreoffice package used for converting media-files and require conversion configs directory.<br />
Depending to hosting necessary to create and set the location of Libreoffice conversion configs directory.<br />
Path starting with a slash located outside Drupal root directory.'),
    '#default_value' => ExternalPackageController::getLibreofficeConfigsDir(),
  ];
  $form['file_libreoffice_bin_path'] = [
    '#type' => 'textfield',
    '#title' => t('Libreoffice bin path'),
    '#description' => t('Enter the path to your libreoffice executable.'),
    '#default_value' => ExternalPackageController::getLibreOfficeBinPath(),
  ];
  $form['file_imagemagick_bin_path'] = [
    '#type' => 'textfield',
    '#title' => t('Imagemagick bin path'),
    '#description' => t('Enter the path to your imagemagick executable.'),
    '#default_value' => ExternalPackageController::getImagemagickBinPath(),
  ];
  $form['#submit'][] = 'opigno_module_form_system_file_system_settings_submit';
}