function views_menu_reference_plugin_argument_current_path::get_argument in Views Menu 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/
views/ views_menu_reference_plugin_argument_current_path.inc, line 16 - Views Plugin class implementation.
Class
- views_menu_reference_plugin_argument_current_path
- Views Argument plugin to return the current path as default argument.
Code
function get_argument() {
// Return the current path (/node/1235, ...)
return current_path();
}