function soundmanager2_admin_validate in SoundManager2 6.2
Same name and namespace in other branches
- 6 soundmanager2.module \soundmanager2_admin_validate()
- 7.2 soundmanager2.module \soundmanager2_admin_validate()
File
- ./
soundmanager2.module, line 109
Code
function soundmanager2_admin_validate($form, &$form_state) {
$sm_path = trim($form_state['values']['sm2-path'], '/');
$form_state['values']['sm2-path'] = $sm_path;
$sm_path_swf = $sm_path . '/swf';
$sm_path_script = $sm_path . '/script';
_soundmanager2_check_directory_readable($sm_path, 0, 'sm2-path');
_soundmanager2_check_directory_readable($sm_path_swf, 0, 'sm2-path');
_soundmanager2_check_directory_readable($sm_path_script, 0, 'sm2-path');
}