You are here

function bbb_update_6102 in BigBlueButton 6

Implement hook_update_N().

File

./bbb.install, line 154
Big Blue Button - Enables universities and colleges to deliver a high-quality learning experience.

Code

function bbb_update_6102() {
  $ret = array();
  db_drop_table($ret, 'bbb_stats');
  include_once drupal_get_path('modules', 'bbb') . 'includes/pages.bbb.inc';
  $request = variable_get('bbb_base_url', '');
  $security_salt = variable_get('bbb_security_salt', '');
  $version = bbb_test_connection($request, $security_salt);
  $ret[] = array(
    'success' => is_numeric($version) ? TRUE : FALSE,
    'query' => t('Big Blue Button API version set to @version', array(
      '@version' => $version ? $version : t('none'),
    )),
  );
  variable_set('bbb_local_tasks', 1);
  $ret[] = array(
    'success' => TRUE,
    'query' => t('The local tasks display can now be disabled on the !page', array(
      '!page' => l(t('administration page'), 'admin/settings/bigbluebutton'),
    )),
  );
  return $ret;
}