Project

General

Profile

Revision fdb0f1fc

IDfdb0f1fc392149a799301fb95e329271a1421fd2
Parent beb914ef
Child d27e2b08

Added by Andreas Kohlbecker about 5 years ago

ref #5943 update script improvements

View differences:

modules/cdm_dataportal/cdm_dataportal.install
407 407
  $tasks_performed[] = "grant new permission 'access cdm content' to default roles";
408 408

  
409 409
  // enable the back_to_search_results block
410
  $show_button = variable_get('cdm_dataportal_show_back_to_search_results');
411
  if(isset($show_button) &&  $show_button == 1) {
410
  $show_button = variable_get('cdm_dataportal_show_back_to_search_results', 1);
411
  if($show_button == 1 || $show_button == "1" ) {
412 412
    $default_theme = variable_get('theme_default', 'zen_dataportal');
413 413
    _block_rehash($default_theme); // ensure the block table is up to date
414 414
    db_update('block')
......
431 431
        ->execute();
432 432
    $tasks_performed[] = "back_to_search_results block enabled";
433 433
  }
434
  // $tasks_performed[] = _remove_variable('cdm_dataportal_show_back_to_search_results');
434
  $tasks_performed[] = _remove_variable('cdm_dataportal_show_back_to_search_results');
435 435

  
436
  return join(', ',$tasks_performed);
436
  return join(', ', $tasks_performed);
437 437
}
438 438

  
439 439
/* ======================================================================== */

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)