Jump to content

Rigth way to little touch a module php file


Recommended Posts

Hello, the thing is that I needed some changes in a module, the blocktopmenu.

 

I have edited some of the code in the blocktopmenu.php file, is this right? Its ok to leave this like that with comments about what I did or should I develop something like a copy of this module?

 

I mean, should I use blocktopmenu(edited by me) or I should have blocktopmenuCustom and leave the original untouched??

Link to comment
Share on other sites

I added some css classes to the php file, wich I know its a nono since this should be done in the template file, but I needed to change the way the data was sent to the template.

 

I just added some class="XXX" to the <li> and <ul> elements.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...