diff --git a/core/modules/node/content_types.inc b/core/modules/node/content_types.inc index 64d8908..e19f2a4 100644 --- a/core/modules/node/content_types.inc +++ b/core/modules/node/content_types.inc @@ -101,7 +101,7 @@ function theme_node_admin_overview($variables) { * * @param $type * (optional) An object representing the node type, when editing an existing - * node type. Defaults to NULL. + * node type. * * @see node_type_form_validate() * @see node_type_form_submit() diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeAccessBaseTableTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeAccessBaseTableTest.php index edd387a..098f0f0 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeAccessBaseTableTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeAccessBaseTableTest.php @@ -22,7 +22,7 @@ class NodeAccessBaseTableTest extends NodeTestBase { /** * The installation profile to use with this test. * - * This test class requires tags taxonomy field. + * This test class requires the "tags" taxonomy field. * * @var string */ diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeAccessRebuildTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeAccessRebuildTest.php index 3fdf157..379397e 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeAccessRebuildTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeAccessRebuildTest.php @@ -28,7 +28,7 @@ function setUp() { } /** - * Tests the rebuilding of node access permissions table. + * Tests rebuilding the node access permissions table. */ function testNodeAccessRebuild() { $this->drupalGet('admin/reports/status'); diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeAccessTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeAccessTest.php index 8c3f246..4f87348 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeAccessTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeAccessTest.php @@ -10,7 +10,7 @@ /** * Tests basic node_access functionality. * - * Note hook_node_access_records() is covered in another test class. + * Note that hook_node_access_records() is covered in another test class. * * @todo Cover hook_node_access in a separate test class. */ diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeCreationTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeCreationTest.php index 78821c2..36baad2 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeCreationTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeCreationTest.php @@ -11,7 +11,7 @@ use Exception; /** - * Tests the creation of and saving a node entity. + * Tests creating and saving a node. */ class NodeCreationTest extends NodeTestBase { diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeFieldMultilingualTestCase.php b/core/modules/node/lib/Drupal/node/Tests/NodeFieldMultilingualTestCase.php index 61a76c5..ffe0332 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeFieldMultilingualTestCase.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeFieldMultilingualTestCase.php @@ -65,7 +65,7 @@ function setUp() { } /** - * Tests if field languages are correctly set through the node form. + * Tests whether field languages are correctly set through the node form. */ function testMultilingualNodeForm() { // Create "Basic page" content. diff --git a/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php b/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php index 3bc0c2c..20ebfbd 100644 --- a/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php @@ -97,7 +97,7 @@ function testPageEdit() { } /** - * Checks changing node authored by fields. + * Tests changing a node's "authored by" field. */ function testPageAuthoredBy() { $this->drupalLogin($this->admin_user); diff --git a/core/modules/node/node.api.php b/core/modules/node/node.api.php index 69f63a0..e02714d 100644 --- a/core/modules/node/node.api.php +++ b/core/modules/node/node.api.php @@ -905,19 +905,20 @@ function hook_node_view_alter(&$build, Drupal\node\Node $node) { * Possible attributes: * - name: (required) The human-readable name of the node type. * - base: (required) The base string used to construct callbacks - * corresponding to this node type (i.e. if base is defined as example_foo, - * then example_foo_insert will be called when inserting a node of that - * type). This string is usually the name of the module, but not always. + * corresponding to this node type (for example, if base is defined as + * example_foo, then example_foo_insert will be called when inserting a node + * of that type). This string is usually the name of the module, but not + * always. * - description: (required) A brief description of the node type. * - help: (optional) Help information shown to the user when creating a node - * of this type.. Defaults to an empty string. + * of this type. * - has_title: (optional) A Boolean indicating whether or not this node type - * has a title field. Defaults to TRUE. + * has a title field. * - title_label: (optional) The label for the title field of this content - * type. Defaults to 'Title'. + * type. * - locked: (optional) A Boolean indicating whether the administrator can * change the machine name of this type. FALSE = changeable (not locked), - * TRUE = unchangeable (locked). Defaults to TRUE. + * TRUE = unchangeable (locked). * * The machine name of a node type should contain only letters, numbers, and * underscores. Underscores will be converted into hyphens for the purpose of diff --git a/core/modules/node/node.module b/core/modules/node/node.module index e1137df..4bdffaa 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -280,7 +280,7 @@ function node_admin_paths() { * field is available, a title attribute will be added to show the number of * comments. * @param $title - * (optional) A heading for the resulting list. Defaults to NULL. + * (optional) A heading for the resulting list. * * @return * A renderable array containing a list of linked node titles fetched from @@ -589,7 +589,7 @@ function node_type_save($info) { * @param $type * A node type object. * @param $label - * (optional) The label for the body instance. Defaults to 'Body'. + * (optional) The label for the body instance. * * @return * Body field instance. @@ -2241,7 +2241,7 @@ function node_block_list_alter(&$blocks) { * and other keys, to be parsed by format_rss_channel() and * format_xml_elements(). A list of channel elements can be found at the * @link http://cyber.law.harvard.edu/rss/rss.html RSS 2.0 Specification. @endlink - * The link should be an absolute URL. Defaults to an empty array. + * The link should be an absolute URL. * * @return Symfony\Component\HttpFoundation\Response * A response object. @@ -3497,7 +3497,7 @@ function node_publish_action(Node $node, $context = array()) { * A node entity. * @param $context * (optional) Array of additional information about what triggered the action. - * Not used for this action. Defaults to an empty array. + * Not used for this action. * * @ingroup actions */ @@ -3513,7 +3513,7 @@ function node_unpublish_action(Node $node, $context = array()) { * A node entity. * @param $context * (optional) Array of additional information about what triggered the action. - * Not used for this action. Defaults to an empty array. + * Not used for this action. * * @ingroup actions */ @@ -3529,7 +3529,7 @@ function node_make_sticky_action(Node $node, $context = array()) { * A node entity. * @param $context * (optional) Array of additional information about what triggered the action. - * Not used for this action. Defaults to an empty array. + * Not used for this action. * * @ingroup actions */ @@ -3545,7 +3545,7 @@ function node_make_unsticky_action(Node $node, $context = array()) { * A node entity. * @param $context * (optional) Array of additional information about what triggered the action. - * Not used for this action. Defaults to an empty array. + * Not used for this action. * * @ingroup actions */ @@ -3561,7 +3561,7 @@ function node_promote_action(Node $node, $context = array()) { * A node entity. * @param $context * (optional) Array of additional information about what triggered the action. - * Not used for this action. Defaults to an empty array. + * Not used for this action. * * @ingroup actions */