mediamosa_configuration_storage_form

Versions
mediamosa-21
mediamosa_configuration_storage_form($node, $form_state)

Code

sites/all/modules/mediamosa/configuration/storage/mediamosa_configuration_storage.module, line 112

<?php
function mediamosa_configuration_storage_form($node, $form_state) {
  assert($node);
  assert($form_state);

  $form = array();

  $a_san_nas = db_query(
    'SELECT current_mount_point, current_mount_point_windows FROM {san_nas_settings} LIMIT 1'
  )->fetchArray();

  $form['general'] = array(
    '#type' => 'fieldset',
    '#collapsible' => FALSE,
    '#collapsed' => FALSE,
    '#title' => t('VPX SAN/NAS mount points'),
    '#description' => t('Mount points on SAN/NAS.')
  );

  $form['general']['current_mount_point'] = array(
    '#type' => 'textfield',
    '#title' => t('Linux mount point'),
    '#description' => t('Current Linux mount point.'),
    '#required' => TRUE,
    '#default_value' => $a_san_nas['current_mount_point'],
  );

  $form['general']['current_mount_point_windows'] = array(
    '#type' => 'textfield',
    '#title' => t('Windows mount point'),
    '#description' => t('Current Windows mount point (use UNC path).'),
    '#required' => TRUE,
    '#default_value' => $a_san_nas['current_mount_point_windows'],
  );

  $form['submit'] = array('#type' => 'submit', '#value' => t('Save'));

  return $form;
}
?>