Closed (outdated)
Project:
Better Messages
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2010 at 13:11 UTC
Updated:
4 Jan 2018 at 13:42 UTC
Jump to comment: Most recent
Comments
Comment #1
broncomania commentedAgree I also need a javscript call to open a message with my own message. This would be nice
Comment #2
nikita petrov commentedHi all!
If you need to output you'r message in better messages format, you can do this:
first you need to add some js files on necessary pages, so put next line into hook _init() in your's module:
After that you must write some javascript:
And in you'r javascript you simply must call
Unfortunatly, i dont know how to render better_messages.tpl.php by javascript, so if you'r theme overriding this, you must change $b variable from show_better_message function as you need.
(maybe someone will implement this with modules http://drupal.org/project/js_theming and http://drupal.org/project/jtemplate or similar?)
Comment #3
bucefal91 commentedThe 6.x version is no longer supported.