The default templates (neither the example nor the briefer template that ships with 7.x-1.0-rc2) don't display any warning text that the user adds through the configuration page. Instead, the template should be able to display the warning message as configured in the GUI.

(I'd consider this a bug except that the module does work. It just doesn't work as one might expect when you enter text into the configuration page and then don't see it.)

Comments

MichaelGreisman created an issue. See original summary.

MichaelGreisman’s picture

Issue summary: View changes
MichaelGreisman’s picture

Title: Dynamic Warning text not displayed by template » Patch for example template
Version: 7.x-1.0-rc2 » 7.x-1.x-dev
StatusFileSize
new914 bytes

This is a simple patch for the example template, extlink-extra-leaving.tpl.example.php. It outputs the alert text if it's been configured, and the static text if not.

I give you a patch for extlink-extra-leaving.tpl.example.php because IMO extlink-extra-leaving.tpl.php ought to be a duplicate of .tpl.example.php with the possible exception of the explanatory comments.

.

MichaelGreisman’s picture

Title: Patch for example template » Dynamic Warning text not displayed by template
Version: 7.x-1.x-dev » 7.x-1.0-rc2

justindodge’s picture

I dig it. Committed to 7.x-1.x.