function mimemail_update_6100 in Mime Mail 6
Implements hook_update_N().
File
- ./
mimemail.install, line 71 - Install, update and uninstall functions for the Mime Mail module.
Code
function mimemail_update_6100(&$sandbox) {
$ret = array();
$perm = explode(', ', db_result(db_query("SELECT perm FROM {permission} WHERE rid=%d", DRUPAL_AUTHENTICATED_RID)));
$perm = implode(', ', array_merge($perm, array(
'access profile settings',
)));
$record = array(
'rid' => DRUPAL_AUTHENTICATED_RID,
'perm' => $perm,
);
drupal_write_record('permission', $record, 'rid');
return $ret;
}