function _sheetnode_google_settings_validate in Sheetnode 7
Same name and namespace in other branches
- 6 modules/sheetnode_google/sheetnode_google.module \_sheetnode_google_settings_validate()
- 7.2 modules/sheetnode_google/sheetnode_google.module \_sheetnode_google_settings_validate()
1 string reference to '_sheetnode_google_settings_validate'
- _sheetnode_google_settings in modules/
sheetnode_google/ sheetnode_google.module
File
- modules/
sheetnode_google/ sheetnode_google.module, line 68 - Module file for the sheetnode_google module. This extends sheetnodes to enable importing of Google sheets.
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;
}
}