Adding multilingual admin settings and removing from settings.php

This commit is contained in:
Manuel Cillero 2017-08-15 08:45:29 +02:00
parent 669b6891c4
commit f53657238c

View file

@ -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);