function uc_wishlist_update_7001 in UC Wish List 7
Replaced the anonymous configuration settings with 'create wish lists' permissions.
File
- ./
uc_wishlist.install, line 157 - uc_wishlist installation routine. Creates uc_wishlists and uc_wishlist_products tables.
Code
function uc_wishlist_update_7001() {
$allow_anonymous = variable_get('uc_wishlist_allow_anonymous', FALSE);
if ($allow_anonymous) {
user_role_change_permissions(DRUPAL_ANONYMOUS_RID, array(
'create wish lists' => TRUE,
));
}
variable_del('uc_wishlist_allow_anonymous');
}