diff --git a/core/modules/forum/forum.install b/core/modules/forum/forum.install index 9f16099..1e2c272 100644 --- a/core/modules/forum/forum.install +++ b/core/modules/forum/forum.install @@ -12,7 +12,7 @@ function forum_install() { // Set the weight of the forum.module to 1 so it is loaded after the taxonomy.module. module_set_weight('forum', 1); // Forum topics are published by default, but do not have any other default - // options set (for example, they are not promoted to the front page). + // options set (for example, they are not promoted by default). // @todo Convert to default module configuration, once Node module's content // types are converted. variable_set('node_options_forum', array('status')); diff --git a/core/modules/node/config/action.action.node_promote_action.yml b/core/modules/node/config/action.action.node_promote_action.yml index 3d56d92..56d7285 100644 --- a/core/modules/node/config/action.action.node_promote_action.yml +++ b/core/modules/node/config/action.action.node_promote_action.yml @@ -1,5 +1,5 @@ id: node_promote_action -label: 'Promote content to front page' +label: 'Promote content' status: '1' langcode: en type: node diff --git a/core/modules/node/config/action.action.node_unpromote_action.yml b/core/modules/node/config/action.action.node_unpromote_action.yml index 86d11a7..13247ac 100644 --- a/core/modules/node/config/action.action.node_unpromote_action.yml +++ b/core/modules/node/config/action.action.node_unpromote_action.yml @@ -1,5 +1,5 @@ id: node_unpromote_action -label: 'Remove content from front page' +label: 'Demote content' status: '1' langcode: en type: node diff --git a/core/modules/node/content_types.inc b/core/modules/node/content_types.inc index 156576b..9a1ffd7 100644 --- a/core/modules/node/content_types.inc +++ b/core/modules/node/content_types.inc @@ -198,7 +198,7 @@ function node_type_form($form, &$form_state, $type = NULL) { '#default_value' => variable_get('node_options_' . $type->type, array('status', 'promote')), '#options' => array( 'status' => t('Published'), - 'promote' => t('Promoted to front page'), + 'promote' => t('Promoted'), 'sticky' => t('Sticky at top of lists'), 'revision' => t('Create new revision'), ), diff --git a/core/modules/node/lib/Drupal/node/NodeFormController.php b/core/modules/node/lib/Drupal/node/NodeFormController.php index e64db93..21a85c6 100644 --- a/core/modules/node/lib/Drupal/node/NodeFormController.php +++ b/core/modules/node/lib/Drupal/node/NodeFormController.php @@ -214,7 +214,7 @@ public function form(array $form, array &$form_state) { $form['options']['promote'] = array( '#type' => 'checkbox', - '#title' => t('Promoted to front page'), + '#title' => t('Promoted'), '#default_value' => $node->promote, ); diff --git a/core/modules/node/lib/Drupal/node/NodeStorageController.php b/core/modules/node/lib/Drupal/node/NodeStorageController.php index 524036b..2a45985 100644 --- a/core/modules/node/lib/Drupal/node/NodeStorageController.php +++ b/core/modules/node/lib/Drupal/node/NodeStorageController.php @@ -184,7 +184,7 @@ public function baseFieldDefinitions() { ); $properties['promote'] = array( 'label' => t('Promote'), - 'description' => t('A boolean indicating whether the node should be displayed on the front page.'), + 'description' => t('A boolean indicating whether the node should be flagged for display in listings of promoted content.'), 'type' => 'boolean_field', ); $properties['sticky'] = array( diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/DemoteNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/DemoteNode.php index 7676a76..27aac1d 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/DemoteNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/DemoteNode.php @@ -16,7 +16,7 @@ * * @Action( * id = "node_unpromote_action", - * label = @Translation("Demote selected content from front page"), + * label = @Translation("Demote selected content"), * type = "node" * ) */ diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/PromoteNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/PromoteNode.php index 56f8658..e17dd22 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/PromoteNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/PromoteNode.php @@ -16,7 +16,7 @@ * * @Action( * id = "node_promote_action", - * label = @Translation("Promote selected content to front page"), + * label = @Translation("Promote selected content"), * type = "node" * ) */ diff --git a/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php b/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php index 0791287..e2f5f71 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php @@ -146,8 +146,9 @@ class Node extends EntityNG implements NodeInterface { /** * The node promotion status. * - * Promoted nodes should be displayed on the front page of the site. The value - * is either NODE_PROMOTED or NODE_NOT_PROMOTED. + * Promoted nodes are displayed in certain listings of promoted content, e.g. + * on the default front page. The status is either NODE_PROMOTED or + * NODE_NOT_PROMOTED. * * @var \Drupal\Core\Entity\Field\FieldInterface */ diff --git a/core/modules/node/node.install b/core/modules/node/node.install index a0a71ff..7a947e8 100644 --- a/core/modules/node/node.install +++ b/core/modules/node/node.install @@ -158,7 +158,7 @@ function node_schema() { 'default' => 0, ), 'promote' => array( - 'description' => 'Boolean indicating whether the node translation should be displayed on the front page.', + 'description' => 'Boolean indicating whether the node translation should be displayed in promoted listings.', 'type' => 'int', 'not null' => TRUE, 'default' => 0, @@ -282,7 +282,7 @@ function node_schema() { 'default' => 0, ), 'promote' => array( - 'description' => 'Boolean indicating whether the node (at the time of this revision) should be displayed on the front page.', + 'description' => 'Boolean indicating whether the node (at the time of this revision) should be marked as promoted.', 'type' => 'int', 'not null' => TRUE, 'default' => 0, @@ -921,7 +921,7 @@ function _node_update_8016_schema() { 'default' => 0, ), 'promote' => array( - 'description' => 'Boolean indicating whether the node translation should be displayed on the front page.', + 'description' => 'Boolean indicating whether the node translation should be marked as promoted.', 'type' => 'int', 'not null' => TRUE, 'default' => 0, @@ -1043,7 +1043,7 @@ function _node_update_8016_schema() { 'default' => 0, ), 'promote' => array( - 'description' => 'Boolean indicating whether the node (at the time of this revision) should be displayed on the front page.', + 'description' => 'Boolean indicating whether the node (at the time of this revision) should be marked as promoted.', 'type' => 'int', 'not null' => TRUE, 'default' => 0, diff --git a/core/modules/node/node.module b/core/modules/node/node.module index fbdf07d..229ead1 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -33,12 +33,12 @@ const NODE_PUBLISHED = 1; /** - * Denotes that the node is not promoted to the front page. + * Denotes that the node is not promoted. */ const NODE_NOT_PROMOTED = 0; /** - * Denotes that the node is promoted to the front page. + * Denotes that the node is promoted. */ const NODE_PROMOTED = 1; @@ -109,7 +109,7 @@ function node_help($path, $arg) { $output .= '