You are here

function linkimagefield_clear_session in Link Image Field 5

1 call to linkimagefield_clear_session()
_linkimagefield_widget_prepare_form_values in ./linkimagefield.module

File

./linkimagefield.module, line 332
Defines an link image field type. linkimagefield uses content.module to store the fid, and the drupal files table to store the actual file data.

Code

function linkimagefield_clear_session() {
  if (is_array($_SESSION['linkimagefield']) && count($_SESSION['linkimagefield'])) {
    foreach (array_keys($_SESSION['linkimagefield']) as $fieldname) {
      linkimagefield_clear_field_session($fieldname);
    }
    unset($_SESSION['linkimagefield']);
  }
}