You are here

function relation_entity_collector_clear in Relation 7

Submit handler for the clear button.

1 call to relation_entity_collector_clear()
relation_entity_collector_save in relation_entity_collector/relation_entity_collector.module
Submit handler for the save button.
1 string reference to 'relation_entity_collector_clear'
relation_entity_collector in relation_entity_collector/relation_entity_collector.module
The entity_collector form.

File

relation_entity_collector/relation_entity_collector.module, line 464
Relation Entity Collector Block.

Code

function relation_entity_collector_clear($form, &$form_state) {
  unset($_SESSION['relation_type'], $_SESSION['relation_entity_keys'], $_SESSION['relation_edit']);
  $form_state['rebuild'] = TRUE;
}