The history tabs are actually just manifestations of the "history" action. Its definition in the actions.ini file is as follows:
- Code: Select all
[history]
url = "{$this->url('-action=history')}"
template = Dataface_Record_History.html
mode = browse
category = record_tabs
selected_condition = "$query['-action'] == 'history'"
condition = "is_array($this->_conf['history'])"
permission = history
order=4
This gives a clue as to how to hide the tabs. The best way would be to disallow the "history" permission from users that shouldn't have access to it. Another way is to override the history action in your own actions.ini file and override the condition directive to include other conditions. Alternatively you could override the action and change the category so that it doesn't appear in the record actions.
I repeat though, the best way is with permissions. That way you prevent users from accessing history altogether, even if they know the URL directly.
-Steve