Warning - Theme hook focal_point_media_library_image_widget not found.

Created on 17 October 2019, over 4 years ago
Updated 15 May 2024, about 1 month ago

Problem/Motivation

The focal_point_media_library_image_widget function do not exists, even though it is set as callback function for the media library forms. A warning is thrown in the logs.

Steps to reproduce:

  • Install a vanilla Drupal, with the focal point module
  • Enable focal point, media, media_library
  • Add a media field to a content type, allow the image media type to be referenced
  • Set the image media type field widget to "Image (Focal point)" on the media library form mode
  • Create a node, upload a new media
  • Check the log, there's the warning

Proposed resolution

Adds the focal_point_media_library_image_widget function, but I'm not sure what should be its purpose?

Remaining tasks

Write patch

๐Ÿ› Bug report
Status

Needs review

Version

2.0

Component

Media Integration

Created by

๐Ÿ‡ซ๐Ÿ‡ทFrance nanak Sarlat-la-Canรฉda

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024