function ctools_context::get_original_argument

Return the value of argument (or arg) variable as it was passed in.

For example see ctools_plugin_load_function() and ctools_terms_context().

Return value

mixed The original arg value.

File

includes/context.inc, line 165

Class

ctools_context
The context object is largely a wrapper around some other object, with an interface to finding out what is contained and getting to both the object and information about the object.

Code

public function get_original_argument() {
    if (!is_null($this->original_argument)) {
        return $this->original_argument;
    }
    return $this->argument;
}