You are here

function cmis_repository_switcher_form_submit in CMIS API 7.2

Same name and namespace in other branches
  1. 6.4 cmis.module \cmis_repository_switcher_form_submit()
  2. 6.3 cmis.module \cmis_repository_switcher_form_submit()
  3. 7 cmis.module \cmis_repository_switcher_form_submit()

CMIS repository switcher form submit.

File

./cmis.module, line 299

Code

function cmis_repository_switcher_form_submit($form, &$form_state) {

  // saving current CMIS repository
  $_SESSION['cmis_repository'] = $form_state['values']['cmis_repository'];

  // redirect to the source page
  $form_state['redirect'] = $_GET['q'];
}