You are here

function date_block_identifier in Date 7

Same name and namespace in other branches
  1. 8 date_views/date_views.module \date_block_identifier()
  2. 6.2 date_api.module \date_block_identifier()
  3. 7.3 date_views/date_views.module \date_block_identifier()
  4. 7.2 date_views/date_views.module \date_block_identifier()
2 calls to date_block_identifier()
date_real_url in date_views/date_views.module
Figure out the URL of the date view we're currently looking at, adapted to various date types or specific date arguments.
date_views_argument_handler::query in date_views/includes/date_views_argument_handler.inc
Set up the query for this argument.

File

date_views/date_views.module, line 181

Code

function date_block_identifier($view) {
  if (!empty($view->block_identifier)) {
    return $view->block_identifier;
  }
  return isset($view->date_info->block_identifier) ? $view->date_info->block_identifier : NULL;
}