Fix excerpts on blog posts

This commit is contained in:
Oliver Davies 2018-12-31 12:13:05 +00:00
parent 429c373db7
commit ff9f0a7b0b
124 changed files with 187 additions and 604 deletions

View file

@ -1,6 +1,6 @@
---
title: How to Define a Minimum Drupal Core Version
description: How to define a minimum Drupal core version for your module or theme.
excerpt: How to define a minimum Drupal core version for your module or theme.
tags:
- drupal
- drupal-7
@ -8,9 +8,8 @@ tags:
meta:
og:
title: 'How to Define a Minimum Drupal Core Version'
description: 'How to define a minimum Drupal core version for your module or theme.'
excerpt: 'How to define a minimum Drupal core version for your module or theme.'
type: article
use: [posts]
---
{% block excerpt %}
This week, my first code patch was [committed to Drupal core](https://www.drupal.org/node/2394517#comment-9773143). The patch adds the `user_has_role()` function to the user module, to simplify the way to check whether a user in Drupal has been assigned a specific role. This is something that I normally write a custom function for each project, but it's now available in Drupal core as of [7.36](https://www.drupal.org/drupal-7.36-release-notes).