diff --git a/core/modules/node/node.install b/core/modules/node/node.install index 3dab783..da31092 100644 --- a/core/modules/node/node.install +++ b/core/modules/node/node.install @@ -760,7 +760,7 @@ function node_update_8014(&$sandbox) { ); db_add_field('node', 'published', $spec, $keys); - // Create a table to store temporary data for this update. + // Create a table to store temporary data for this update. db_create_table('node_update_8014', array( 'description' => 'Stores temporary data for node_update_8014.', 'fields' => array( @@ -792,7 +792,6 @@ function node_update_8014(&$sandbox) { $sandbox['last'] = 0; $sandbox['count'] = 0; $sandbox['total'] = db_query('SELECT COUNT(*) FROM {node_update_8014}')->fetchField(); - } else { // We do each pass in batches of 1000. diff --git a/core/modules/node/node.views.inc b/core/modules/node/node.views.inc index a67b870..8f46224 100644 --- a/core/modules/node/node.views.inc +++ b/core/modules/node/node.views.inc @@ -117,6 +117,22 @@ function node_views_data() { ), ); + // Published field + $data['node']['published'] = array( + 'title' => t('Published date'), + 'help' => t('The date the content was first published on.'), + 'field' => array( + 'id' => 'date', + 'click sortable' => TRUE, + ), + 'sort' => array( + 'id' => 'date' + ), + 'filter' => array( + 'id' => 'date', + ), + ); + // Content type $data['node']['type'] = array( 'title' => t('Type'), // The item it appears as on the UI,