5 * Provide views data for history.module.
9 * Implements hook_views_data().
11 function history_views_data() {
14 // We're actually defining a specific instance of the table, so let's
15 // alias it so that we can later add the real table for other purposes if we
17 $data['history']['table']['group'] = t('Content');
19 // Explain how this table joins to others.
20 $data['history']['table']['join'] = [
21 // Directly links to node table.
22 'node_field_data' => [
24 'left_field' => 'nid',
27 ['field' => 'uid', 'value' => '***CURRENT_USER***', 'numeric' => TRUE],
32 $data['history']['timestamp'] = [
33 'title' => t('Has new content'),
35 'id' => 'history_user_timestamp',
36 'help' => t('Show a marker if the content is new or updated.'),
39 'help' => t('Show only content that is new or updated.'),
40 'id' => 'history_user_timestamp',