function activity_token_list in Activity 6.2
Same name and namespace in other branches
- 5.4 activity.module \activity_token_list()
- 5.3 activity.module \activity_token_list()
- 6 activity.module \activity_token_list()
This allows other module to extend the current token list of other modules.
See also
comment_activity_token_list
activity_token_values
File
- ./
activity.module, line 495 - Primarily Drupal hooks and global API functions to manipulate activity.
Code
function activity_token_list($type = 'all') {
if ($type == 'activity' || $type == 'all' || function_exists($type . '_activity_token_list')) {
$token_list = array();
foreach (activity_get_module_info() as $module => $info) {
if (function_exists($module . '_activity_token_list')) {
$token_list = array_merge($token_list, call_user_func($module . '_activity_token_list', $module));
}
}
return $token_list;
}
}