views_plugin_argument_default_current_user.inc

Same filename in other branches
  1. 7.x-3.x modules/user/views_plugin_argument_default_current_user.inc

Contains the current user argument default plugin.

File

modules/user/views_plugin_argument_default_current_user.inc

View source
<?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;
    }

}

Classes

Title Deprecated Summary
views_plugin_argument_default_current_user Default argument plugin to extract the global $user