diff --git a/core/modules/comment/comment.admin.inc b/core/modules/comment/comment.admin.inc index 1ae4490..0682d47 100644 --- a/core/modules/comment/comment.admin.inc +++ b/core/modules/comment/comment.admin.inc @@ -9,10 +9,17 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** - * Page callback for displaying the comment bundle admin overview page. + * Page callback: Displays the comment bundle admin overview page. */ function comment_overview_bundles() { - $header = array(t('Field name'), t('Used in'), array('data' => t('Operations'), 'colspan' => (module_exists('field_ui') ? '4' : '2'))); + $header = array( + t('Field name'), + t('Used in'), + array( + 'data' => t('Operations'), + 'colspan' => (module_exists('field_ui') ? '4' : '2') + ) + ); $rows = array(); foreach (comment_get_comment_fields() as $field_name => $field_info) { @@ -139,7 +146,9 @@ function comment_admin_overview($form, &$form_state, $arg) { ->orderByHeader($header) ->execute(); - $cids = $entity_ids = $entities = array(); + $cids = array(); + $entity_ids = array(); + $entities = array(); // We collect entities grouped by entity_type so we can load them and use // their labels. diff --git a/core/modules/comment/comment.api.php b/core/modules/comment/comment.api.php index bd79c6e..7792f23 100644 --- a/core/modules/comment/comment.api.php +++ b/core/modules/comment/comment.api.php @@ -174,8 +174,10 @@ function hook_comment_delete(Drupal\comment\Comment $comment) { } /** - * Controls access to commenting on an entity where no {%entity_type}_access - * function exists for the given entity. + * Controls access to entity comment forms. + * + * Used to control access to commenting on an entity where no + * {%entity_type}_access function exists for the given entity. * * Modules may implement this hook if they want to have a say in whether or not * the logged in user has access to view an entity in order to reply to a diff --git a/core/modules/comment/comment.field.inc b/core/modules/comment/comment.field.inc index 9160484..2b5febf 100644 --- a/core/modules/comment/comment.field.inc +++ b/core/modules/comment/comment.field.inc @@ -1,4 +1,5 @@