function commerce_wishlist_install in Commerce Wishlist 7.3
Same name and namespace in other branches
- 8.3 commerce_wishlist.install \commerce_wishlist_install()
Implements hook_install().
File
- ./
commerce_wishlist.install, line 11 - Installation hooks.
Code
function commerce_wishlist_install() {
// Grant users the ability to manage their own wishlist by default.
user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array(
'manage own wish list',
));
// Create our field.
commerce_wishlist_create_visibility_field();
}