You are here

function mimemail_enable in Mime Mail 7

Implements hook_enable().

File

./mimemail.install, line 11
Install, update and uninstall functions for Mime Mail module.

Code

function mimemail_enable() {
  module_load_include('module', 'mailsystem');
  mailsystem_set(array(
    mailsystem_default_id() => 'MimeMailSystem',
    'mimemail' => 'MimeMailSystem',
  ));
  user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array(
    'edit mimemail user settings',
  ));
}