materio-base-legacy/modules/user/views_plugin_argument_default_current_user.inc
bachy b20b38f514 first import
Signed-off-by: bachy <git@g-u-i.net>
2013-01-09 10:53:26 +01:00

19 lines
388 B
PHP

<?php
/**
* @file
* Contains the current user argument default plugin.
*/
/**
* Default argument plugin to extract the global $user
*
* This plugin actually has no options so it odes not need to do a great deal.
*/
class views_plugin_argument_default_current_user extends views_plugin_argument_default {
function get_argument() {
global $user;
return $user->uid;
}
}