Functions | |
browserHistory () | |
customize browser title when viewing history | |
browserHistoryView () | |
customize browser title when viewing a version of the content | |
browserHistoryViewByDate () | |
customize browser title when viewing history at a date | |
browserHistoryDiff () | |
customize browser title when diffing versions | |
historyLink () | |
creates a link to history | |
history () | |
display history versions | |
historyView () | |
display a particular history version by id | |
historyViewByDate () | |
display a particular history version by date | |
createTitle ($node) | |
create title to display differences | |
historyDiff () | |
perform diff and display it | |
historyDelete () | |
Confirm delete history. | |
onHistoryDelete () | |
delete history from history form | |
historyDeleteAll () | |
Confirm delete all history. | |
onHistoryDeleteAll () | |
delete all history from history form | |
Variables | |
$contentBoxHandle ['history'] = 'history' | |
$contentBoxHandle ['history_view'] = 'historyView' | |
$contentBoxHandle ['history_view_by_date'] = 'historyViewByDate' | |
$contentBoxHandle ['history_diff'] = 'historyDiff' | |
$contentBoxHandle ['history_del'] = 'historyDelete' | |
$contentBoxHandle ['history_del_all'] = 'historyDeleteAll' | |
$userActionHandle ['history_del_confirm'] = 'onHistoryDelete' | |
$userActionHandle ['history_del_all_confirm'] = 'onHistoryDeleteAll' | |
$browserTitlePageHandle ['history'] = 'browserHistory' | |
$browserTitlePageHandle ['history_view'] = 'browserHistoryView' | |
$browserTitlePageHandle ['history_view_by_date'] = 'browserHistoryViewByDate' | |
$browserTitlePageHandle ['history_diff'] = 'browserHistoryDiff' |
This file creates several hooks :
History viewing is done via a table. Each line is a particular version. At the end of each line there is a radio button that allows the user to select 2 different versions.
This page contains also several helper functions for the user to create template :
browserHistory | ( | ) |
customize browser title when viewing history
browserHistoryDiff | ( | ) |
customize browser title when diffing versions
browserHistoryView | ( | ) |
customize browser title when viewing a version of the content
browserHistoryViewByDate | ( | ) |
customize browser title when viewing history at a date
createTitle | ( | $ | node | ) |
create title to display differences
node | the node to create title for |
history | ( | ) |
display history versions
historyDelete | ( | ) |
Confirm delete history.
historyDeleteAll | ( | ) |
Confirm delete all history.
historyDiff | ( | ) |
perform diff and display it
historyView | ( | ) |
display a particular history version by id
historyViewByDate | ( | ) |
display a particular history version by date
the precision is the date. The displayed version is the last version of the day. It is possible to go beyond subsecond precision, but it will need to add more arguments to url (at least hour, min, sec)
onHistoryDelete | ( | ) |
delete history from history form
onHistoryDeleteAll | ( | ) |
delete all history from history form