function social_profile_install in Open Social 8.9
Same name and namespace in other branches
- 8 modules/social_features/social_profile/social_profile.install \social_profile_install()
- 8.2 modules/social_features/social_profile/social_profile.install \social_profile_install()
- 8.3 modules/social_features/social_profile/social_profile.install \social_profile_install()
- 8.4 modules/social_features/social_profile/social_profile.install \social_profile_install()
- 8.5 modules/social_features/social_profile/social_profile.install \social_profile_install()
- 8.6 modules/social_features/social_profile/social_profile.install \social_profile_install()
- 8.7 modules/social_features/social_profile/social_profile.install \social_profile_install()
- 8.8 modules/social_features/social_profile/social_profile.install \social_profile_install()
- 10.3.x modules/social_features/social_profile/social_profile.install \social_profile_install()
- 10.0.x modules/social_features/social_profile/social_profile.install \social_profile_install()
- 10.1.x modules/social_features/social_profile/social_profile.install \social_profile_install()
- 10.2.x modules/social_features/social_profile/social_profile.install \social_profile_install()
Implements hook_install().
Perform actions related to the installation of social_profile.
File
- modules/
social_features/ social_profile/ social_profile.install, line 23 - Install, update and uninstall functions for the social_profile module.
Code
function social_profile_install() {
// Set some default permissions.
_social_profile_set_permissions();
// Add some links.
_social_profile_create_menu_links();
// Add default profile image.
_social_profile_add_default_profile_image();
// Create a profile for user 1.
Profile::create([
'type' => ProfileType::load('profile')
->id(),
'uid' => 1,
])
->save();
}