function ctools_context_user_convert_list in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 plugins/contexts/user.inc \ctools_context_user_convert_list()
 
Provide a list of replacements.
1 string reference to 'ctools_context_user_convert_list'
File
- plugins/
contexts/ user.inc, line 148  - Plugin to provide a user context
 
Code
function ctools_context_user_convert_list() {
  $list = array(
    'uid' => t('User ID'),
    'name' => t('User name'),
  );
  // Include tokens provided by token.module.
  if (module_exists('token')) {
    foreach (token_get_list(array(
      'user',
    )) as $tokens) {
      $list += $tokens;
    }
  }
  return $list;
}