function opigno_lms_update_7103 in Opigno LMS 7
Enable new fixes in Quiz Helper.
Enable new Opigno Breadcrumbs module.
File
- ./
opigno_lms.install, line 414 - Install, update and uninstall functions for the Opigno LMS installation profile.
Code
function opigno_lms_update_7103(&$sandbox) {
module_load_install('opigno_quiz_helper');
opigno_quiz_helper_install();
// Enable our new breadcrumbs module.
module_enable(array(
'opigno_breadcrumbs',
));
// Refresh translations.
opigno_lms_refresh_strings_and_import(array(
'rules',
'field',
'commerce',
));
// Set OG context handling.
variable_set('og_context_negotiation_group_context', array(
'opigno_tool' => array(),
'opigno_entity_reference' => array(),
'opigno_quiz_app_question_add' => array(),
'tft' => array(),
'url' => array(),
'node' => array(),
'og_forum' => array(),
));
variable_set('og_context_providers_weight_group_context', array(
'opigno_tool' => -10,
'opigno_entity_reference' => -5,
'opigno_quiz_app_question_add' => -3,
'tft' => -1,
'url' => 0,
'node' => 5,
'user-view' => 10,
'comment' => 15,
'og_forum' => 20,
'user-edit' => 25,
));
}