Problem/Motivation

The token module provides a token for node log message and it is used by a lot of Drupal sites.

However, the token module does not create tokens for log message for any other entity types.

Especially when using a notification module that uses tokens when content is updated, having a log message token is key.

Testing

To test the new tokens, it's easiest if you have a module that uses tokens installed - example pathauto.

With pathauto, create a pattern for media items and confirm that [media:log] appears as a token option and that it returns the last log message as expected.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jastraat created an issue. See original summary.

jastraat’s picture

Title: Create a token for media log message. » Create token for media and block content log messages.
jastraat’s picture

Issue summary: View changes
jastraat’s picture

Status: Active » Needs review
jastraat’s picture

Title: Create token for media and block content log messages. » Create tokens for media and block content log messages.
mmarsello’s picture

Status: Needs review » Reviewed & tested by the community

Code changes reviewed and approved.

  • jastraat committed 4cf50250 on 1.0.x
    feat: #3562739 Create tokens for media and block content log messages....
jastraat’s picture

Status: Reviewed & tested by the community » Fixed

Thank you @mmarsello!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.