You are here

function date_block_identifier in Date 6.2

Same name and namespace in other branches
  1. 8 date_views/date_views.module \date_block_identifier()
  2. 7.3 date_views/date_views.module \date_block_identifier()
  3. 7 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_api_argument_handler::query in includes/date_api_argument_handler.inc
Set up the query for this argument.
date_real_url in ./date_api.module
Figure out the URL of the date view we're currently looking at, adapted to various date types or specific date arguments.

File

./date_api.module, line 2494
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

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