Revision fdb0f1fc
Added by Andreas Kohlbecker over 7 years ago
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
ref #5943 update script improvements