You are here

public function ctools_context::get_original_argument in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/context.inc \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 154
Contains code related to the ctools system of 'context'.

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;
}