function social_album_social_node_message in Open Social 10.1.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_album/social_album.module \social_album_social_node_message()
- 10.0.x modules/social_features/social_album/social_album.module \social_album_social_node_message()
- 10.2.x modules/social_features/social_album/social_album.module \social_album_social_node_message()
Implements hook_social_node_message().
File
- modules/
social_features/ social_album/ social_album.module, line 225 - The Social Album module.
Code
function social_album_social_node_message(NodeInterface $node) {
if ($node
->bundle() === 'album' && $node
->isNew()) {
return t('Album @title is successfully created. Now you can add images to this album.', [
'@title' => $node
->label(),
]);
}
return NULL;
}