You are here

function example_set_session in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_upgrade/tests/old/samples/example.module \example_set_session()

File

coder_upgrade/tests/old/samples/example.module, line 91

Code

function example_set_session() {

  // $_SESSION['site_offline'] = variable_get('site_offline', FALSE) -- Change the next line but leave this alone
  $_SESSION['site_offline'] = variable_get('site_offline', FALSE);
  if ($_SESSION['site_offline'] == FALSE) {
    variable_set('site_offline', TRUE);
  }
  $_SESSION['update_results'] = $results;
  $_SESSION['update_success'] = $success;
  $_SESSION['updates_remaining'] = $operations;
  $_SESSION['batch_form_state'] = $_batch['form_state'];
  if ($message) {
    if (!isset($_SESSION['messages'])) {
      $_SESSION['messages'] = array();
    }
  }
  if (!isset($_SESSION['messages'][$type])) {
  }
  $_SESSION['book_update_6000_orphans']['from'] = 0;
  $_SESSION['book_update_6000'] = array();

  // drupal_set_session('book_update_6000_orphans', array('from' => 0));
  // drupal_set_session('book_update_6000', array());
  $_SESSION['dblog_overview_filter'][$name] = $form_state['values'][$name];

  // Unchanged?
  $_SESSION['dblog_overview_filter'] = array();

  // drupal_set_session('dblog_overview_filter', array());
  $session =& $_SESSION['node_overview_filter'];
  $_SESSION['node_overview_filter'][] = array(
    $filter,
    $form_state['values'][$filter],
  );

  // Unchanged?
  $_SESSION['openid']['service'] = $services[0];

  // Unchanged?
}