From f53657238c1fd58b6fcae04de740e746468db09f Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Tue, 15 Aug 2017 08:45:29 +0200 Subject: [PATCH] Adding multilingual admin settings and removing from settings.php --- modules/storm/storm.module | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/modules/storm/storm.module b/modules/storm/storm.module index 2b591c8..8383f71 100644 --- a/modules/storm/storm.module +++ b/modules/storm/storm.module @@ -356,7 +356,42 @@ function storm_user($op, &$edit, &$account, $category = NULL) { * $_SESSION['SuiteCRM_Session_ID'] = Session ID for user in SuiteCRM */ function storm_init() { - global $user, $base_url; + global $conf, $user, $base_url; + + // Multilingual admin settings: + $conf['i18n_variables'] = array( + // User email variables: + 'user_registration_help', + 'user_mail_register_admin_created_subject', + 'user_mail_register_admin_created_body', + 'user_mail_register_no_approval_required_subject', + 'user_mail_register_no_approval_required_body', + 'user_mail_register_pending_approval_subject', + 'user_mail_register_pending_approval_body', + 'user_mail_password_reset_subject', + 'user_mail_password_reset_body', + 'user_mail_status_activated_subject', + 'user_mail_status_activated_body', + 'user_mail_status_blocked_subject', + 'user_mail_status_blocked_body', + 'user_mail_status_deleted_subject', + 'user_mail_status_deleted_body', + 'user_picture_guidelines', + // Primary and secondary links: + 'menu_primary_links_source', + // Custom error module variables: + 'customerror_403_title', + // Print link: + 'print_html_link_text', + // Watcher templates: + 'watcher_notifications_templates_header', + 'watcher_notifications_templates_footer', + 'watcher_notifications_templates_footer_anonymous_notify', + 'watcher_notifications_templates_footer_confirm', + 'watcher_notifications_templates_body_node', + 'watcher_notifications_templates_body_cmt', + 'watcher_notifications_templates_body_confirm', + ); // It is intended to move these calls to pages which specifically need them rather than on hook_init. drupal_add_js(drupal_get_path('module', 'storm') .'/storm.js', 'module', 'header', FALSE);