diff --git a/core/modules/node/content_types.inc b/core/modules/node/content_types.inc index 736c171..1e25277 100644 --- a/core/modules/node/content_types.inc +++ b/core/modules/node/content_types.inc @@ -75,8 +75,8 @@ function node_overview_types() { } /** - * Preprocess variables node-admin-overview.html.twig, node type description - * for the content type admin page. + * Preprocess variables for node-admin-overview.html.twig, a node type + * description for the content type admin page. * * @param $variables * An associative array containing: diff --git a/core/modules/node/node.module b/core/modules/node/node.module index c5a6c41..2094829 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -1132,7 +1132,7 @@ function node_preprocess_block(&$variables) { } /** - * Setup template variables for node.html.twig + * Setup template variables for node.html.twig. * * Most themes utilize their own copy of node.html.twig. The default is located * inside "core/modules/node/templates/node.html.twig". Look in there for the @@ -1535,11 +1535,11 @@ function template_preprocess_node_search_admin(&$variables) { $header = array(t('Factor'), t('Weight')); foreach (element_children($form['factors']) as $key) { - $row = array(); - $row[] = $form['factors'][$key]['#title']; - $form['factors'][$key]['#title_display'] = 'invisible'; - $row[] = drupal_render($form['factors'][$key]); - $rows[] = $row; + $row = array(); + $row[] = $form['factors'][$key]['#title']; + $form['factors'][$key]['#title_display'] = 'invisible'; + $row[] = drupal_render($form['factors'][$key]); + $rows[] = $row; } $variables['table'] = theme('table', array('header' => $header, 'rows' => $rows)); diff --git a/core/modules/node/node.pages.inc b/core/modules/node/node.pages.inc index a387043..d0340d2 100644 --- a/core/modules/node/node.pages.inc +++ b/core/modules/node/node.pages.inc @@ -176,7 +176,8 @@ function template_preprocess_node_preview(&$variables) { $node_full = node_view($node, 'full'); $variables['full'] = drupal_render($node_full); - // Do we need to preview a trimmed teaser version of a post as well as a full version? + // Do we need to preview a trimmed teaser version of a post as well as a full + // version? if ($variables['teaser'] != $variables['full']) { drupal_set_message(t('The trimmed version of your post shows what your post looks like when promoted to the main page or when exported for syndication. You can insert the delimiter "<!--break-->" (without the quotes) to fine-tune where your post gets split.')); $variables['preview_teaser'] = TRUE; diff --git a/core/modules/node/templates/node-add-list.html.twig b/core/modules/node/templates/node-add-list.html.twig index f517659..df3f621 100644 --- a/core/modules/node/templates/node-add-list.html.twig +++ b/core/modules/node/templates/node-add-list.html.twig @@ -4,11 +4,11 @@ * Default theme implementation to list the available types for content creation. * * Available variables: - * - types: list of content types - * - no_content_text: Text displaying when no content types are avalieble. + * - types: List of content types. + * - no_content_text: Text displayed when no content types are available. * - * @see template_preprocess - * @see template_preprocess_node_add_list + * @see template_preprocess() + * @see template_preprocess_node_add_list() * * @ingroup themeable */ @@ -19,7 +19,7 @@
{{ type.add_link }}
{{ type.description }}
{% endfor %} - + {% else %}

{{ no_content_text }}

{% endif %} diff --git a/core/modules/node/templates/node-admin-overview.html.twig b/core/modules/node/templates/node-admin-overview.html.twig index e1136cb..23f6ec2 100644 --- a/core/modules/node/templates/node-admin-overview.html.twig +++ b/core/modules/node/templates/node-admin-overview.html.twig @@ -9,8 +9,8 @@ * - machine_name: Machine readable name of the content type. * - description: Description of the content type. * - * @see template_preprocess - * @see template_preprocess_node_admin_overview + * @see template_preprocess() + * @see template_preprocess_node_admin_overview() * * @ingroup themeable */ diff --git a/core/modules/node/templates/node-preview.html.twig b/core/modules/node/templates/node-preview.html.twig index ba107f9..9c5913c 100644 --- a/core/modules/node/templates/node-preview.html.twig +++ b/core/modules/node/templates/node-preview.html.twig @@ -6,12 +6,13 @@ * This display may be used during node creation and editing. * * Available variables: - * - preview_teaser: Boolean flag indicating whether or not to show a trimmed teaser version. + * - preview_teaser: Flag indicating whether or not to show a trimmed teaser + * version. * - teaser: Trimmed teaser version of the node. * - full: Full version of the node. * - * @see template_preprocess - * @see template_preprocess_node_preview + * @see template_preprocess() + * @see template_preprocess_node_preview() * * @ingroup themeable */ diff --git a/core/modules/node/templates/node-recent-block.html.twig b/core/modules/node/templates/node-recent-block.html.twig index 0bfedd4..b8cfd81 100644 --- a/core/modules/node/templates/node-recent-block.html.twig +++ b/core/modules/node/templates/node-recent-block.html.twig @@ -4,11 +4,11 @@ * Default theme implementation for a list of recent content. * * Available variables: - * - table: An rendered HTML table of recent content. + * - table: A rendered HTML table of recent content. * - more_link: A rendered link to show more content. * - * @see template_preprocess - * @see template_preprocess_node_recent_block + * @see template_preprocess() + * @see template_preprocess_node_recent_block() * * @ingroup themeable */ diff --git a/core/modules/node/templates/node-recent-content.html.twig b/core/modules/node/templates/node-recent-content.html.twig index 600a850..ef52547 100644 --- a/core/modules/node/templates/node-recent-content.html.twig +++ b/core/modules/node/templates/node-recent-content.html.twig @@ -4,12 +4,12 @@ * Default theme implementation for a recent node to be displayed in the recent content block. * * Available variables: - * - path: Path to content - * - mark: html marker for new or updated content - * - username: The author of the content + * - link: Link to the content. + * - mark: HTML marker for new or updated content. + * - username: The author of the content. * - * @see template_preprocess - * @see template_preprocess_node_recent_content + * @see template_preprocess() + * @see template_preprocess_node_recent_content() * * @ingroup themeable */ diff --git a/core/modules/node/templates/node-search-admin.html.twig b/core/modules/node/templates/node-search-admin.html.twig index 00016b1..c7a2dca 100644 --- a/core/modules/node/templates/node-search-admin.html.twig +++ b/core/modules/node/templates/node-search-admin.html.twig @@ -7,10 +7,10 @@ * - table: The table of the settings. * - form: A render element representing the form. * -* @see template_preprocess -* @see template_preprocess_node_search_admin +* @see template_preprocess() +* @see template_preprocess_node_search_admin() * -* @group themable +* @ingroup themeable */ #} {{ table }} diff --git a/core/modules/node/templates/node.html.twig b/core/modules/node/templates/node.html.twig index 31f86c6..43d233d 100644 --- a/core/modules/node/templates/node.html.twig +++ b/core/modules/node/templates/node.html.twig @@ -13,12 +13,12 @@ * - user_picture: The node author's picture from user-picture.html.twig. * - created: Formatted creation date. Preprocess functions can reformat it by * calling format_date() with the desired parameters on the $created variable. - * - changed: Formatted last-changed date. + * - changed: Formatted last updated date. * - node_url: Direct URL of the current node. * - display_submitted: Whether submission information should be displayed. - * - attributes: An instance of Attributes class that can be manipulated as an - * array and printed as a string. - * It includes the 'class' information, which includes: + * - attributes: An instance of the Attributes class that can be manipulated as + * an array and printed as a string. + * It includes the 'class' information, which contains: * - node: The current template type; for example, "theming hook". * - node-[type]: The current node type. For example, if the node is a * "Article" it would result in "node-article". Note that the machine @@ -41,24 +41,25 @@ * - type: Node type; for example, page, article, etc. * - comment_count: Number of comments attached to the node. * - uid: User ID of the node author. - * - created: Time the node was published formatted in Unix timestamp. * - zebra: Outputs either "even" or "odd". Useful for zebra striping in * teaser listings. * - id: Position of the node. Increments each time it's output. * * Node status variables: * - view_mode: View mode; for example, "teaser" or "full". - * - teaser: Flag for the teaser state (shortcut for $view_mode == 'teaser'). - * - page: Flag for the full page state. + * - teaser: Flag for the teaser state. Will be true if view_mode is 'teaser'. + * - page: Flag for the full page state. Will be true if view_mode is 'full'. * - promote: Flag for front page promotion state. - * - sticky: Flags for sticky post setting. + * - sticky: Flag for sticky post setting. * - status: Flag for published status. * - comment: State of comment settings for the node. - * - readmore: Flags true if the teaser content of the node cannot hold the - * main body content. - * - is_front: Flags true when presented in the front page. - * - logged_in: Flags true when the current user is a logged-in member. - * - is_admin: Flags true when the current user is an administrator. + * - readmore: Flag for more state. Will be true if the teaser content of the + * node cannot hold the main body content. + * - is_front: Flag for front. Will be true when presented on the front page. + * - logged_in: Flag for authenticated user status. Will be true when the + * current user is a logged-in member. + * - is_admin: Flag for admin user status. Will be true when the current user + * is an administrator. * * Field variables: for each field instance attached to the node a corresponding * variable is defined; for example, $node->body becomes body. When needing to @@ -67,10 +68,10 @@ * desired field language; for example, $node->body['en'], thus overriding any * language negotiation rule that was previously applied. * - * @see template_preprocess - * @see template_preprocess_node + * @see template_preprocess() + * @see template_preprocess_node() * - * @TODO: might be a good idea to remove the id attribute, because if that gets + * @todo Might be a good idea to remove the id attribute, because if that gets * rendered twice on a page this is invalid CSS for example: two lists * in different view modes. *