opigno_forum_app.install in Opigno Forum App 7
Defines module install logic.
File
opigno_forum_app.installView source
<?php
/**
* @file
* Defines module install logic.
*/
/**
* Implements hook_install().
*/
function opigno_forum_app_install() {
if (module_exists('advanced_forum')) {
// Add the OG audience field.
if (function_exists("og_ui_node_type_save")) {
variable_set("og_group_content_type_forum_event", TRUE);
og_ui_node_type_save('forum');
}
// If we're in distribution context, refresh the strings and translations.
if (function_exists('opigno_lms_refresh_strings_and_import')) {
opigno_lms_refresh_strings_and_import(array(
'rules',
'field',
));
}
}
}
Functions
Name![]() |
Description |
---|---|
opigno_forum_app_install | Implements hook_install(). |