You are here

public function MigrateStatisticsEntityHandler::fields in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/destinations/statistics.inc \MigrateStatisticsEntityHandler::fields()

File

plugins/destinations/statistics.inc, line 12
Support for node_counter statistics in core Drupal nodes

Class

MigrateStatisticsEntityHandler
@file Support for node_counter statistics in core Drupal nodes

Code

public function fields() {
  if (module_exists('statistics')) {
    $fields = array(
      'totalcount' => t('Node: The total number of times the node has been viewed.'),
      'daycount' => t('Node: The total number of times the node has been viewed today.'),
      'timestamp' => t('Node: The most recent time the node has been viewed.'),
    );
  }
  else {
    $fields = array();
  }
  return $fields;
}