function filefield_clear_session in FileField 5.2
Same name and namespace in other branches
- 5 filefield.module \filefield_clear_session()
1 call to filefield_clear_session()
File
- ./
filefield.module, line 340 - Defines a file field type.
Code
function filefield_clear_session() {
if (is_array($_SESSION['filefield']) && count($_SESSION['filefield'])) {
foreach (array_keys($_SESSION['filefield']) as $fieldname) {
filefield_clear_field_session($fieldname);
}
unset($_SESSION['filefield']);
}
}