Skip to main content
7 events
when toggle format what by license comment
Aug 14, 2018 at 2:54 comment added Himanshu Pathak Thanks, in that case we need to replace MYTHEME by MYMODULE right ?
Aug 12, 2018 at 17:58 comment added avpaderno @HimanshuPathak It's probably better to avoid adding code to a theme just because it's easier, expecially when the behavior doesn't depend from a theme (which means the code you are adding to a theme should be added to every theme).
Jan 2, 2017 at 12:23 history edited avpaderno CC BY-SA 3.0
improved punctuation
Dec 4, 2013 at 19:38 comment added marcvangend Careful? Is adding modules dangerous nowadays? In fact, I would be more careful about putting stuff like this in your theme. You can ask yourself the question "If I would ever choose another theme, should this change remain?" If the answer is yes, it doesn't belong in your theme.
Dec 4, 2013 at 5:13 comment added Himanshu Pathak Careful!! You don't need to add modules for small changes: you can override your template file and add the followning code : function MYTHEME_preprocess_page(&$vars) { if (drupal_is_front_page()) { unset($vars['page']['content']['system_main']['default_message']); //will remove message "no front page content is created" drupal_set_title(''); //removes welcome message (page title) }
Jan 20, 2013 at 8:09 comment added avpaderno As side note, this module will remove also the "Add new content" link which is not necessary, if the site is not going to have nodes.
Jan 18, 2013 at 20:35 history answered marcvangend CC BY-SA 3.0