You are here

function rolereference_views_plugin_argument_default_current_user::get_argument in Role Reference 7

Return the default argument.

This needs to be overridden by every default argument handler to properly do what is needed.

Overrides views_plugin_argument_default::get_argument

File

includes/rolereference_views_plugin_argument_default_current_user.inc, line 14
Contains the current user argument default plugin.

Class

rolereference_views_plugin_argument_default_current_user
Default argument plugin to extract the global $user

Code

function get_argument() {
  global $user;
  $rids = array_keys($user->roles);
  return implode("+", $rids);
}