Closed (fixed)
Project:
Comment Limit By Role
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Reporter:
Created:
13 Jul 2012 at 09:40 UTC
Updated:
13 Jul 2012 at 14:43 UTC
Thanks to russel.dk review: http://drupal.org/node/1637450#comment-6165526
When the module is installed, it would be nice with a message showing that it did so. The message could link to the configure page. Here is the code I used for my module, which is also in the application queue:
/**
* Implements hook_install().
*/
function webmaster_menu_install() {
// Tell user that the module was installed and how to configure it.
$t = get_t();
$link = l($t('Administration > Configuration > Webmaster menu'), 'admin/config/webmaster_menu');
$text = $t("Webmaster menu was installed. It can be configured here: " . $link);
drupal_set_message(filter_xss_admin($text));
}
Note that you should not use get_t() here. Not t() and not st() (see http://drupal.org/node/1420358#comment-6099242)
Comments
Comment #1
marpic commentedAdded install configuration message and also fixed setting page path to be drupal path consistent (now it appears on admin menu).