You are here

function _sheetnode_google_settings_validate in Sheetnode 7.2

Same name and namespace in other branches
  1. 6 modules/sheetnode_google/sheetnode_google.module \_sheetnode_google_settings_validate()
  2. 7 modules/sheetnode_google/sheetnode_google.module \_sheetnode_google_settings_validate()

Google settings validation.

1 string reference to '_sheetnode_google_settings_validate'
_sheetnode_google_settings in modules/sheetnode_google/sheetnode_google.module
Internal google settings.

File

modules/sheetnode_google/sheetnode_google.module, line 79
Module file for the sheetnode_google module.

Code

function _sheetnode_google_settings_validate($form, $form_state) {
  $path = rtrim($form_state['values']['sheetnode_zend_gdata_path'], '/');
  if (!empty($path) && (!is_dir($path) || !is_file($path . '/Zend/Gdata.php'))) {
    form_set_error('sheetnode_zend_gdata_path', t('The path you entered does not point to a valid location. Please enter the full path of the extracted Zend Gdata package, including the library subdirectory.'));
    return;
  }
}