You are here

function hook_social_group_move in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/social_group.api.php \hook_social_group_move()
  2. 8.2 modules/social_features/social_group/social_group.api.php \hook_social_group_move()
  3. 8.3 modules/social_features/social_group/social_group.api.php \hook_social_group_move()
  4. 8.4 modules/social_features/social_group/social_group.api.php \hook_social_group_move()
  5. 8.5 modules/social_features/social_group/social_group.api.php \hook_social_group_move()
  6. 8.6 modules/social_features/social_group/social_group.api.php \hook_social_group_move()
  7. 8.7 modules/social_features/social_group/social_group.api.php \hook_social_group_move()
  8. 8.8 modules/social_features/social_group/social_group.api.php \hook_social_group_move()
  9. 10.3.x modules/social_features/social_group/social_group.api.php \hook_social_group_move()
  10. 10.0.x modules/social_features/social_group/social_group.api.php \hook_social_group_move()
  11. 10.1.x modules/social_features/social_group/social_group.api.php \hook_social_group_move()
  12. 10.2.x modules/social_features/social_group/social_group.api.php \hook_social_group_move()

Provide a method to return node which was moved to another group.

Parameters

\Drupal\node\NodeInterface $node: The event or topic node.

1 function implements hook_social_group_move()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

activity_basics_social_group_move in modules/custom/activity_basics/activity_basics.module
Implements hook_social_group_move().

File

modules/social_features/social_group/social_group.api.php, line 21
Hooks provided by the Social_group module.

Code

function hook_social_group_move(\Drupal\node\NodeInterface $node) {
  drupal_set_message(t('@title is moved.', [
    '@title' => $node
      ->getTitle(),
  ]));
}