You are here

function emthumb_clear_session in Embedded Media Field 5

1 call to emthumb_clear_session()
emthumb_emfield_widget_extra in contrib/emthumb/emthumb.module
when editing a node with an emfield, this will add our custom thumbnail upload form if allowed.

File

contrib/emthumb/emthumb.module, line 490

Code

function emthumb_clear_session() {
  if (is_array($_SESSION['emthumb']) && count($_SESSION['emthumb'])) {
    foreach (array_keys($_SESSION['emthumb']) as $fieldname) {
      emthumb_clear_field_session($fieldname);
    }
    unset($_SESSION['emthumb']);
  }
}