public function views_handler_argument_node_created_month::title in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 modules/node/views_handler_argument_dates_various.inc \views_handler_argument_node_created_month::title()
- 6.2 modules/node/views_handler_argument_dates_various.inc \views_handler_argument_node_created_month::title()
Provide a link to the next level of the view
Overrides views_handler_argument::title
File
- modules/
node/ views_handler_argument_dates_various.inc, line 120 - Definition of views_handler_argument_node_created_fulldate.
Class
- views_handler_argument_node_created_month
- Argument handler for a month (MM).
Code
public function title() {
$month = str_pad($this->argument, 2, '0', STR_PAD_LEFT);
$timestamp = strtotime("2005" . $month . "15" . " 00:00:00 UTC");
if ($timestamp !== FALSE) {
return format_date($timestamp, 'custom', $this->format, 'UTC');
}
}