social_path_manager.api.php in Open Social 10.0.x
Same filename and directory in other branches
- 8.9 modules/custom/social_path_manager/social_path_manager.api.php
- 8.5 modules/custom/social_path_manager/social_path_manager.api.php
- 8.6 modules/custom/social_path_manager/social_path_manager.api.php
- 8.7 modules/custom/social_path_manager/social_path_manager.api.php
- 8.8 modules/custom/social_path_manager/social_path_manager.api.php
- 10.3.x modules/custom/social_path_manager/social_path_manager.api.php
- 10.1.x modules/custom/social_path_manager/social_path_manager.api.php
- 10.2.x modules/custom/social_path_manager/social_path_manager.api.php
Hooks provided by the Social Path Manager module.
File
modules/custom/social_path_manager/social_path_manager.api.phpView source
<?php
/**
* @file
* Hooks provided by the Social Path Manager module.
*/
/**
* Hooks to alter the group and tabs included in the automated path aliases.
*
* @addtogroupviews hooks
* @{
*/
/**
* Provide a method to alter array of group views used in open social.
*
* @param array $types
* List of group views used in open social.
*
* @ingroup social_path_manager_api
*/
function hook_social_path_manager_group_types_alter(array &$types) {
$types[] = 'challenge';
}
/**
* Provide a method to alter array of tabs used in open social.
*
* @param array $tabs
* List of group tabs used in open social.
*
* @ingroup social_path_manager_api
*/
function hook_social_path_manager_group_tabs_alter(array &$tabs) {
$tabs['social_group.about'] = 'about';
}
/**
* @} End of "addtogroupviews hooks".
*/
Functions
Name | Description |
---|---|
hook_social_path_manager_group_tabs_alter | Provide a method to alter array of tabs used in open social. |
hook_social_path_manager_group_types_alter | Provide a method to alter array of group views used in open social. |