My first thought was to create a new module. I need to create an API module (like this one) in order to create QR Codes with the Linux command line qrencode. See http://megaui.net/fukuchi/works/qrencode/index.en.html

This patch makes QR Codes pluggable. The encoding API/engine is moved outside in a sub-module and the image generation is implemented as Drupal hook. Admins can enable only the needed engine.

The module can be extended with other QR Codes encoders like Phpqrencode using hook_qr_codes().

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

claudiu.cristea’s picture

FileSize
10.24 KB

Added also a separate settings tab for each engine (if the engine implements $op == 'config')

claudiu.cristea’s picture

FileSize
12.76 KB

Some improvements.

claudiu.cristea’s picture

FileSize
18.82 KB

Added also qrencode http://megaui.net/fukuchi/works/qrencode/index.en.html as encoding engine.

levelos’s picture

Status: Needs review » Fixed

Great patch Claudiu, I think this will help push the module to the next level. I made a few minor changes to the patch and committed.

Status: Fixed » Closed (fixed)

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