How To Remove Label Storm Dashboard From dashboard Page? and is it legal?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
rakeshjuneja's picture

Hi,
I am developing a project management Site for my Company, i have installed and configured it, But when i open Dashboard page there is Label Storm dashboard, with all due respect and credit to developers I would like to Substitute It witn Organisation Name Or Simply Dashboard.
Is it LEgal to do so? Kindly Advise and if yes how to do it?

Comments

String OverRides

Wes Ashworth's picture

Yes, try the String Overrides module. Worked great for me. There are a few instances where it didn't remove all. I think I had to go into the view module and edit the views.

Wes

Removing Label Storm Dashboard from dashboard page

blade003's picture

Obviously you are meant to give credit to the developers of this wonderful application but if for any reason you want to remove or edit the STORM label from the dashboard then follow these instructions:

EDIT wamp\www\drupal\sites\all\modules\storm\storm.module
(Be careful not to mess up this file as it will affect the whole application)

YOU WILL NEED TO EDIT TWO SECTIONS OF THE storm.module file as shown below:

Edit 1 >>>

function storm_menu() {
$items = array();

$items['storm'] = array(
'title' => 'Storm',
'description' => 'Storm Dashboard',
'page callback' => 'storm_dashboard',
'access arguments' => array('Storm: access dashboard'),
'parent' => '',
'type' => MENU_NORMAL_ITEM,
);

to

function storm_menu() {
$items = array();

$items['storm'] = array(
'title' => 'Storm',
'description' => 'WHATEVER-YOU-WANT',
'page callback' => 'storm_dashboard',
'access arguments' => array('Storm: access dashboard'),
'parent' => '',
'type' => MENU_NORMAL_ITEM,
);

Edit 2 >>>

function storm_dashboard() {
drupal_set_title(t('Storm Dashboard'));
drupal_add_css(drupal_get_path('module', 'storm'). '/storm-dashboard.css');
return theme('storm_dashboard');
}

to

function storm_dashboard() {
drupal_set_title(t('WHATEVER-YOU-WANT'));
drupal_add_css(drupal_get_path('module', 'storm'). '/storm-dashboard.css');
return theme('storm_dashboard');
}

Save the file and refresh your browser, you should now see your amended text on your dashboard.

Enjoy!!!

Thanks Blade

rakeshjuneja's picture

Thanks! it worked.

This is the wrong way to go

juliangb's picture

This is the wrong way to go about this change. Whenever then we release a bug fix release, you will have to remake the change on the latest release.

Instead, use string overrides as suggested above.

Also, please bear in mind that it can be changed in the module by popular consent. If you want to be active in the development of the module, please join us on the issue queue.

My site: http://julian.granger-bevan.me.
Maintainer of: Drupal PM (Project Management).
You can contribute towards my Drupal work at http://www.gittip.com/juliangb/.

blade003's picture

@ juliangb,
I understand this is not the best solution however it is the only way currently to remove the STORM label on the actual dashboard page, using the string overrides does the override for most pages but not for the front dashboard page, and I also understand that it can be changed in the module if enough people make the request but in the meantime any one needing to make this change have no other way of doing so...unless someone knows of a better way in the interim!

In that case, there should be

juliangb's picture

In that case, there should be a bug report stating "String overrides does not allow overriding the Storm label on the dashboard page". Please see the issues queue at http://drupal.org/project/issues/storm .

This will probably mean changing 1 line of code. If so, this can probably be committed within days. Hence, it is solved for everyone.

By hacking the .module file, you are giving yourself unmaintained code, so it is actually easier to get this fixed properly!

My site: http://julian.granger-bevan.me.
Maintainer of: Drupal PM (Project Management).
You can contribute towards my Drupal work at http://www.gittip.com/juliangb/.

In fact, I have checked the

juliangb's picture

In fact, I have checked the code.

  • The title of the dashboard is enclosed with t() which means it should be able to be set through the string overrides module.
  • The menu items can be done through the ui by disabling the provided ones and creating new ones.

Therefore, no need for bug reports or code changes.

My site: http://julian.granger-bevan.me.
Maintainer of: Drupal PM (Project Management).
You can contribute towards my Drupal work at http://www.gittip.com/juliangb/.