function _date_views_arg_field_name in Date 5.2
Helper function to find the field name in the argtype.
2 calls to _date_views_arg_field_name()
- _date_views_argument_filter in date/
date_views.inc - Views values vary depending on the op: $op = 'filter' $argtype = array of arg settings $query = views object $arg = argument value
- _date_views_argument_summary in date/
date_views.inc - Views values vary depending on the op: $op = 'summary' $argtype = name of the argument $query = views object $arg = argument type
File
- date/
date_views.inc, line 524
Code
function _date_views_arg_field_name($argtype) {
$name = explode(':', $argtype);
$tofield_name = trim($name[1]);
return drupal_substr($tofield_name, 0, 3) == 'to|' ? drupal_substr($tofield_name, 3) : $tofield_name;
}