You are here

function mimemail_install in Mime Mail 6

Implements hook_install().

File

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

Code

function mimemail_install() {
  $perm = explode(', ', db_result(db_query("SELECT perm FROM {permission} WHERE rid=%d", DRUPAL_AUTHENTICATED_RID)));
  $perm = implode(', ', array_merge($perm, array(
    'edit mimemail user settings',
  )));
  $record = array(
    'rid' => DRUPAL_AUTHENTICATED_RID,
    'perm' => $perm,
  );
  drupal_write_record('permission', $record, 'rid');
}