function commentaccess_user_presave in Comment Access 7
Implements hook_user_presave().
File
- ./
commentaccess.module, line 364 - Provides users with permissions for comments on nodes they own.
Code
function commentaccess_user_presave(&$edit, $account, $category) {
if (isset($edit['commentaccess_email'])) {
$edit['data']['commentaccess_email'] = $edit['commentaccess_email'];
}
foreach (node_type_get_types() as $node) {
$type = $node->type;
if (isset($edit["commentaccess_skip_{$type}"])) {
$edit['data']["commentaccess_skip_{$type}"] = $edit["commentaccess_skip_{$type}"];
}
}
}