Customize tabs module Database

Customize tabs module Database

by Alex Ferrer -
Number of replies: 2

Hi

I'm using moodle 2.5.1 + and the database module I would like to customize the tabs eliminating View single. Can this be done?

Cheers.
Alex.

Average of ratings: -
In reply to Alex Ferrer

Re: Customize tabs module Database

by Itamar Tzadok -

If you mean customize the code then you can modify mod/database/tabs.php to comment out the line that adds the search tab, and mod/database/lib.php function data_extend_navigation to comment out the line that adds the corresponding link to the navigation block.

Other possible approaches, less foolproof though, are css and/or javascript to remove/hide the dom elements of the tab and navigation link.

hth smile

In reply to Itamar Tzadok

Re: Customize tabs module Database

by Alex Ferrer -

I modified mod/database/tabs.php and it worked perfectly.

Thanks. big grin