Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all! I got an idea. Would it be possibile to add a custom format using Colorbox and Mobile Codes modules? So that phone numbers are displayed as text links which lead to a colorbox popup with a QR code of the phone number itself (generated by the Mobile Codes module). Would it be possibile at module level?
Comments
Comment #1
ckngI believe it is possible.
You can try to use Custom Formatters to create the needed link to Mobile Codes (assuming the link will generate the QR code) and configure Colorbox to trigger on that link.
Comment #2
cesareaugusto CreditAttribution: cesareaugusto commentedI tried this way but I couldn't figure out how (somhow hard to get preloaded QR codes). I was wondering whether it would be implemented at module level, as a defalut or selectable formatter.
Comment #3
ckngIf you cannot get it to work using Custom Formatters, I doubt you can implement it at module level, because they are practically the same.
Comment #4
javdich CreditAttribution: javdich commentedCan this be done without a colorbox link? So the QR code is displayed directly on the page instead of through a link?
Comment #5
ckngYes, refer to mobile codes custom formatters example, just call the theme('mobilecode' ...
Comment #6
javdich CreditAttribution: javdich commentedHmmm... if your referring to the built in examples in custom formatters, perhaps I'm missing one. The only example formatters I have are: Example: Image (PHP) and Example: Image (HTML + Token). Please let me know if I'm missing something.
Also, if you have the export code, that would be helpful as well...
Thanks for the fast response.