David McCabe
97c60dcc56
Changed getInternalLinkAttributesInternal parameters: now accepts Title object if available, passes to hook. Also reordered some code in makeKnownLinkObj so that said hook can mangle the Title object. Reordering should have no other side-effects.
2008-07-16 07:22:21 +00:00
Brion Vibber
5c75f383d8
Revert r37686, 37687 for now:
...
"Improving extendibility of the sidebar improvements, css adding, and also JS variables."
"* New hooks:"
"** SkinSidebarSpecialBox and SkinSidebarOutputSpecialBox to allow extensions to add new custom boxes to Tim's new Sidebar system"
"** SkinSetupSiteCss to allow extensions to modify and add new stylesheets to load into the page. This one allows for fine positioning and can be very useful for things like an extension providing global css for a wiki farm."
"** SkinGlobalVariables to allow extensions to add new global variables to export to the JS variables in the page."
At least some of these appear to duplicate existing functionality -- extensions already can add new stylesheets and JS variables, and I'm pretty sure can add portals as well.
2008-07-15 21:35:32 +00:00
Brion Vibber
f0bcd97be3
Revert r37669: LinkerLinkAttributes hook doesn't seem to make a lot of sense. The parameters passed can't be modified, and they are escaped for output, making it unsuitable as a general extension hook.
2008-07-15 21:16:32 +00:00
Daniel Friesen
81ffc1f019
Improving extendibility of the sidebar improvements, css adding, and also JS variables.
...
* New hooks:
** SkinSidebarSpecialBox and SkinSidebarOutputSpecialBox to allow extensions to add new custom boxes to Tim's new Sidebar system
** SkinSetupSiteCss to allow extensions to modify and add new stylesheets to load into the page. This one allows for fine positioning and can be very useful for things like an extension providing global css for a wiki farm.
** SkinGlobalVariables to allow extensions to add new global variables to export to the JS variables in the page.
2008-07-15 11:03:04 +00:00
David McCabe
433fe522ec
Added LinkerLinkAttributes hook.
2008-07-14 22:29:53 +00:00
Aryeh Gregor
12b4eba6ef
Revert r37299. It's causing some extremely strange behavior that I can't pin down. Try copying the text =={{[[Navbox]]}}== into a page, where [[Template:Navbox]] is copied from enwiki. An exhibit is up at < http://en.wikipedia.org/wiki/User:Simetrical/Tl_test > until this fix goes live. This was reported at < http://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Problem_with_.7B.7Btl.7D.7D_in_section_headers > by CapitalR; thanks to RockMFR for tracking down the revision that was causing it.
...
As a general rule, it would be a good idea to first split the functions off into their own file without changing them, and then refactor them in a separate commit. Otherwise it's very hard to follow what's actually being changed. (git actually tracks changes to functions when they're moved across files, incidentally, which is quite awesome.)
2008-07-10 19:18:00 +00:00
Aryeh Gregor
680007475f
Fixes for r37489:
...
* Don't pass $data or $flags by reference. They're never accessed again, so it makes no sense.
* Document in hooks.txt.
The interface for this hook seems very messy. It seems like it would be much cleaner to expose $data as $url (null if stored locally); and $flags as an array, or something like that. If the text is gzipped, the text can be extracted from the Revision and re-gzipped if you really want to for some strange reason.
2008-07-10 18:04:32 +00:00
Brion Vibber
bb3faf9d9b
Revert r37490, 37493 for now -- 'NotifyOnPageChangeComplete hook added'
...
The hook seems a bit odd; it triggers on some of the composes, but not all. There's another loop right after this one.
Also, there's no need to pass objects as references here.
2008-07-10 17:02:39 +00:00
Krzysztof Krzyzaniak
bad9cb5008
NotifyOnPageChangeComplete description
2008-07-10 12:23:21 +00:00
Niklas Laxström
60f3e72328
* Move message functions to own file
...
* Improve documentation
* Reduce code duplication
* Fix the braindamage that wfMsg and friends were doing transform, but in the wrong language
2008-07-08 08:05:54 +00:00
Ryan Schmidt
a070873551
* Add new hook NormalizeMessageKey to allow extensions to change what system message is being shown before any queries are made
2008-07-07 22:37:42 +00:00
Brion Vibber
742973c85b
Revert r37078, 37132 "New hook ParserBeforeTranscludeTemplate:
...
This hook allows for modification of the title and text of a template which is being transcluded.
Use of this hook will allow extensions to create features such as TransWiki for an alternative to ScaryTransclusions."
This hook seems a bit oddly placed to me; the template gets fetched locally, and *then* we give the opportunity to fetch it remotely instead? Just seems to be in the wrong order, and pretty unclear.
2008-07-05 22:45:37 +00:00
Alexandre Emsenhuber
de9c02190c
* Added $IP in dirs for OpenSearchUrls hook
...
* getHooksFromDoc() now returns an unique array
* 80 chars per line in docs/hooks.txt
2008-07-05 11:36:55 +00:00
Daniel Friesen
e339f61471
New hook ParserBeforeTranscludeTemplate:
...
This hook allows for modification of the title and text of a template which is being transcluded.
Use of this hook will allow extensions to create features such as TransWiki for an alternative to ScaryTransclusions.
2008-07-05 03:36:12 +00:00
Roan Kattouw
0104fa1f0c
Rewritten the way the API handles tokens:
...
* Instead of hardcoding stuff all over the place, use callbacks
* Extensions can now add their own tokens to prop=info or prop=revisions using hooks
2008-07-04 12:07:02 +00:00
Aaron Schulz
58f01b0645
Re-commit fixed r37006
2008-07-04 09:38:12 +00:00
Brion Vibber
bbaa82d5f9
Revert r37006 -- causes fatal errors:
...
PHP Fatal error: Using $this when not in object context in Article.php on line 135
2008-07-04 00:04:58 +00:00
Aaron Schulz
8c77d16317
Make redirects work properly with flagging (bug 14714)
2008-07-03 20:37:44 +00:00
Brion Vibber
918ec72c43
Revert the rest of r36804 -- ExtendJSGlobalVars and wfMessageCacheReplace hooks.
...
ExtendJSGlobalVars is probably ok in function, though I don't really like its name.
wfMessageCacheReplace seems really unclear as to what it's trying to accomplish.
2008-07-02 22:56:15 +00:00
Daniel Kinzler
4ae25d6b4c
Add hook to replace logic for generating category links. May be used by CategoryTree one day.
2008-07-02 20:02:51 +00:00
Brion Vibber
da83631150
format fix
2008-07-02 01:05:08 +00:00
Brion Vibber
add8c926ac
OpenSearch cleanup; Firefox now sends you to the search page for empty searches instead of the domain root (which may not even be a wiki).
...
This is done by adding the <moz:SearchForm> extension element with the Special:Search URL.
Removed the 24-character truncation on ShortName... neither Firefox nor IE seems to care about longer names, but both expect the ShortName and <link> title to match, and will think you have a duplicate search provider if they don't match because only one was truncated. (Besides, 24 was longer than the spec's limit of 16 -- why bother limiting at all if not to spec?)
The JSON suggestions are now no longer included in the OpenSearch description if the API is disabled, since the interface won't work.
Generally removed some hardcoded escape-then-stick-vars-in-string-output eww... Extension hooks now have a more general opportunity to alter or replace the OpenSearch URLs by tying into the OpenSearchUrls hook.
2008-07-01 23:31:24 +00:00
Chad Horohoe
8af42e9413
Pass $mediaWiki object to MediawikiPerformAction hook.
2008-07-01 03:56:16 +00:00
Jack Phoenix
599b5a42d0
Two new hooks and one new global function from Wikia codebase
2008-06-30 08:42:09 +00:00
Aryeh Gregor
124d3cce7d
Update RELEASE-NOTES and hooks.txt for r36692. Contrary to the commit message, the AbortMove hook seems not to have been changed, so I didn't mention that.
2008-06-27 13:37:47 +00:00
Ryan Schmidt
40ccb73c4d
* add new hook LinkerMakeExternalImage to allow extensions to modify the HTML output of external images
2008-06-24 14:32:49 +00:00
Chad Horohoe
13d510bf55
Bit of work to AbortMove hook, in preparation for making the SpamBlacklist work on move logs.
2008-06-24 13:03:16 +00:00
Chad Horohoe
6928864a0c
Hooks EditFilter and EditFilter complete got a new param (edit summary), docs updated with this.
2008-06-19 03:14:05 +00:00
Alexandre Emsenhuber
9c1c71d558
Per r36375: update docs/memcached.txt
2008-06-18 09:49:15 +00:00
Niklas Laxström
58f7bb30a0
Refactored SpecialRecentchanges:
...
* Use a class and new frameworks
* Split into functions
* Two new hooks
* Split feed related items to new classes that are autoloaded
2008-06-17 08:24:00 +00:00
Aryeh Gregor
6231aa29db
Slightly clarify docs
2008-06-12 21:31:05 +00:00
Alexandre Emsenhuber
de38755f0d
Document UserLoadDefaults and UserSetCookies hooks
2008-06-11 11:07:34 +00:00
Brion Vibber
364aef1d10
Revert r36161 -- these are pretty weird-looking hooks, which seem a bit arbitrary and have terrible names.
2008-06-10 21:14:14 +00:00
Jack Phoenix
a052460863
Two new hooks to EditPage.php, EditPage::AfterEdit:Form and EditPage:BeforeDisplayingTextbox
2008-06-10 16:33:41 +00:00
Ryan Schmidt
2c0df2ef3b
* add hook desc to hooks.txt and fix typo in LinkerMakeExternalLink hook
2008-06-08 21:58:29 +00:00
Aaron Schulz
ba54d88882
* Add OldLocalFile::selectRows()
...
* Add LocalFile::getHistory hook
* Do file history quality query all at once rather than per file
2008-06-08 17:39:24 +00:00
Aryeh Gregor
421a7f1175
SpecialSearchResults hook now passes results by reference, so they can be changed by extensions.
2008-06-05 18:13:16 +00:00
Andrew Garrett
e25009cae1
Add GetAutoPromoteGroups hook, which was in my working copy but not committed yet (core change for TorBlock extension)
2008-06-04 06:04:13 +00:00
Brion Vibber
a3b85ed3ea
Revert r35476, r35479 -- breaks first login with global account when ConfirmEdit is present.
2008-05-28 18:43:18 +00:00
Andrew Garrett
e588383c86
* Respect hooks' decisions when autocreating accounts.
...
* New parameter for AbortCreateAccount: (whether the account is being autocreated). Used in CentralAuth.
2008-05-28 11:26:05 +00:00
Alexandre Emsenhuber
60e4a51e1a
Added $oldName to documentation of UserLogoutComplete hook
2008-05-27 19:59:15 +00:00
Alexandre Emsenhuber
9c700dad77
Document ImagePageFindFile hook
2008-05-24 20:51:08 +00:00
Aaron Schulz
3543d97c5c
Add PageHistoryPager::getQueryInfo
2008-05-23 16:55:52 +00:00
Andrew Garrett
bc23aede55
Core changes for GlobalBlocking and TorBlock extensions, plus some core refactoring work:
...
* Instead of saying 'do that' in a permissions error, actually list what the action is (drawn from the right-$1 messages). This isn't perfect - it says you don't have permission to edit pages when
you can't edit a single page, but it's better than 'do that'.
* Refactor out some code from various block files into Block::formatExpiry and Block::parseExpiryInput.
* Don't display 'you cannot edit special pages' when you're trying to execute, or create an account, or something like that.
* New AbortAutoblock hook (for use in TorBlock extension), which allows extensions to cancel autoblocks.
2008-05-23 10:34:11 +00:00
Aaron Schulz
eda07e65be
It helps if doc is accurate ;)
2008-05-22 04:53:05 +00:00
Aaron Schulz
9717cebd88
*Redo newRevisionFromEditComplete hook. Pass an Article instead of a title
...
*Use prepareTextForEdit() to avoid double parsing
*Parser cache will be saved again later, so need to do it twice in a row
2008-05-22 01:03:45 +00:00
Aaron Schulz
7c2c02953c
* Add higher level newRevisionFromEditComplete hook
...
* Use this hook for autoreviewing. Merge to one function again.
* Remove template ID query for $usestabletemplates, not needed
* Improve includes change diff if $usestabletemplates is on
2008-05-17 17:53:46 +00:00
Brion Vibber
beedd5c5f3
Revert r34906, r34907, r34928 -- mixing high-level data into low-level storage functions for the sole purpose of passing it off to hooks, which seems very icky to me. It feels like a hook in the wrong place is being used.
2008-05-17 15:53:58 +00:00
Alexandre Emsenhuber
ecbdb3ad1c
Document AuthPluginAutoCreate hook
2008-05-17 09:06:35 +00:00
Aaron Schulz
4bb299cbce
*Add ImagePageFileHistoryLine hook
...
*Tweak hook doc order
*Mark flagged file versions in hist
*Remove $dbr field
*Tweak file histories to be more compact
2008-05-17 00:08:31 +00:00
Aaron Schulz
21bc5be1a7
Improve efficiency of autoreviewing of edits rollbacks and merge into main function
2008-05-16 18:22:31 +00:00
Aaron Schulz
493d8451b8
Decrappify edit check for revision hook
2008-05-16 03:17:05 +00:00
Alexandre Emsenhuber
24b095a3d6
Document new hook UserLoadFromSession and add a note to RELEASE-NOTES that AutoAuthenticate has been renamed
2008-05-14 12:45:16 +00:00
Alexandre Emsenhuber
5087bbbbc5
* Added --online option to maintenance/findhooks.php to compare hooks with http://www.mediawiki.org/wiki/Manual:Hooks
...
* Renamed GetAvailableRights to UserGetAllRights in docs/hooks.txt
2008-05-09 16:22:33 +00:00
River Tarnell
3e996679d9
(bug 13584) New hook: SkinTemplateToolboxEnd
2008-04-30 10:17:51 +00:00
Alexandre Emsenhuber
11353b6984
Per r33966: added $id param to ArticleDeleteComplete hook
2008-04-29 16:07:04 +00:00
Andrew Garrett
eee9c290db
Various final compatibility additions to work with global groups, which is ready for review
2008-04-24 11:36:47 +00:00
Brion Vibber
6a8177178b
Revert r33725, r33726 (hook in Sanitizer::fixTagAttributes()).
...
This hook is just plain weird.
* Return value on abort destroys the entire data set
* Whitespace is bad
* It's very unclear what this would be used for
* This is a low-level function that's going to get called very often, and the hook is in a place that has little clear function. It's unclear what a general hook would want to do with it.
2008-04-22 17:29:41 +00:00
Andrew Garrett
8fd8155ee2
(bug 13821) Add new SanitizerAfterFixTagAttributes. Patch adapted from one by Wiktor Walc, but with some indentation fixing, and my own documentation on the hook
2008-04-22 13:02:33 +00:00
Robert Stojnić
d6fd8e7c13
Ajax suggestions:
...
* check in a new ajax suggestion engine (mwsuggest.js) which uses
OpenSearch to fetch results (by default via API), this should
deprecated the old ajaxsearch thingy
* extend PrefixSearchBackend hook to accept multiple namespaces for
future lucene use (default implementation however can still
process only one)
* Added to preferences, also a feature to turn it on/off for every
input (disabled atm until I work out browser issues completely)
* WMF wikis probably won't be using API to fetch results, but a
custom php wrapper that just forwards the request to appropriate
lucene daemon, added support for that
SpecialSearch:
* moved stuff out of SpecialSearch to SearchEngine, like snippet
highlighting and such
* support for additional interwiki results, e.g. title matches
from other projects shown in a separate box on the right
* todo: interwiki box doesn't have standard prev/next links to
avoid clutter and unintuitive interface
* support for related articles
2008-04-15 23:06:28 +00:00
Aaron Schulz
68df48c93a
Autoreview null edits too (bug 13733)
2008-04-15 15:38:08 +00:00
Alexandre Emsenhuber
4af415d4ec
Document newly added hooks
2008-04-15 15:37:02 +00:00
Aryeh Gregor
209b382761
Add a new hook EditPageBeforeEditConflict to allow extensions like FCKeditor to modify the output for edit conflicts. By request of moisadoru on IRC for FCKeditor extension issue: http://dev.fckeditor.net/ticket/1385
2008-04-15 14:47:04 +00:00
Alexandre Emsenhuber
c27b4b7b62
Added parameter to SavePreferences hook, contains old user preferences. See my next commit for an implementation of it.
2008-04-12 19:42:27 +00:00
Alexandre Emsenhuber
a1963860d5
Document GetCacheVaryCookies hook
2008-04-10 14:28:56 +00:00
Andrew Garrett
ac930bf819
Modify UserLoginComplete and UserLogoutComplete hooks to allow HTML injection into the success page by hooks. For CentralAuth 'global logging in'
2008-04-09 12:44:53 +00:00
Alexandre Emsenhuber
b5125bffc7
Added parameter to BeforePageDisplay hook so that extension can use it to modify it. See my next commit for an inplementation of it.
2008-04-07 17:53:31 +00:00
Alexandre Emsenhuber
752b64e46d
Document ArticleRevisionVisiblitySet hook
2008-03-22 17:29:44 +00:00
Alexandre Emsenhuber
ffb9afb2af
Some tweaks:
...
* Remove ending ?> tag in NamespaceCompat.php
* Fix hook name in docs/hooks.txt
2008-03-22 14:55:29 +00:00
Brion Vibber
0924a30333
* (bug 9447) Added hooks for search result headings
...
* (bug 13338) DidYouMean extension now displays 'see also' on general search results
2008-03-21 22:36:34 +00:00
Yaron Koren
fc86bfd2fb
Added new hook, 'BrokenLink'
2008-03-06 18:23:30 +00:00
Brion Vibber
b7abfbc9f6
Revert r31505, r31510 (secureAndSplit hook).
...
This hook doesn't seem well thought out; a hook isn't given clean access to the various possible fields it's likely to want to manipulate, and generally feels a bit rushed.
2008-03-03 19:54:22 +00:00
Roan Kattouw
e0aae6a658
API: Adding action=edit module
2008-03-03 18:08:40 +00:00
Roan Kattouw
33a913d27f
(bug 13166) Adding TitleSecureAndSplit hook. Modified patch by Joshua Bacher
2008-03-03 16:22:36 +00:00
Roan Kattouw
d2a7be1488
(bug 12542) Adding a bunch of hooks to SpecialListusers.php, modified patch by Daniel Friesen
2008-03-02 14:14:43 +00:00
Alexandre Emsenhuber
744363ef1f
doc tweaks
2008-03-01 20:39:45 +00:00
Bryan Tong Minh
29248e7a4f
Fix description for UploadComplete hook. New hooks: FileDeleteComplete, FileUndeleteComplete
2008-03-01 13:35:01 +00:00
Alexandre Emsenhuber
664ad23883
* Document ParserMakeImageParams hook
...
* Fix capitalization of @addtogroup in RepoGroup.php
* Fix comment in SpecialRevisiondelete.php, replace xml functions from wf* to Xml::* and use __METHOD__ instead of hardcoded function name
2008-02-29 19:58:50 +00:00
Aryeh Gregor
4ee532af65
Add new hook ImageBeforeProduceHTML, per request on Wikitech-l. If it sucks or is broken, please revert or fix. :)
2008-02-26 17:20:39 +00:00
Ryan Schmidt
3ab7b9b0d7
* EditPageBeforeEditButtons hook now passes EditPage object for reference
2008-02-13 00:31:02 +00:00
Ryan Schmidt
73b21b4f19
* Renamed hook 'ModifyEditButtons' to 'EditPageBeforeEditButtons' for naming consistency
...
* Update hooks.txt
2008-02-13 00:13:57 +00:00
Huji
c525c447c7
Adding ParserFirstCallInit to the documentation
2008-02-10 11:39:39 +00:00
Bryan Tong Minh
8599bbee84
New hooks: LinksUpdate, LinksUpdateComplete. Add function getTitle to LinksUpdate.
2008-02-09 12:32:32 +00:00
Brion Vibber
6e63f4cbad
Add SearchGetNearMatch hook, have TitleKey provide a case-insensitive exact match for "go" searches.
2008-01-31 20:51:42 +00:00
Brion Vibber
7a3227596e
* Merged backends for OpenSearch suggestions and AJAX search.
...
Both now accept namespace prefixes, handle 'Media:' and 'Special:' pages,
and reject interwiki prefixes. PrefixSearch class centralizes this code,
and the backend part can be overridden by the PrefixSearchBackend hook.
2008-01-30 01:07:49 +00:00
Raimond Spekking
9e5594353f
Add an info to the comment field of the newuserlog when an account was created "by email"
...
This was inspired by bug 12767 to identify such accounts.
2008-01-29 16:18:55 +00:00
Roan Kattouw
b94eff773e
Adding SkinSubPageSubtitle hook on Wiredtape's request.
2008-01-29 15:05:48 +00:00
Brion Vibber
24cf0360fa
Document new hook UserCanSendEmail
2008-01-29 00:31:26 +00:00
Victor Vasiliev
afde502b54
* Introduce getUserPermissionsErrorsExpensive hook
2008-01-14 13:50:55 +00:00
Aryeh Gregor
b24975a3ff
Clarify in getUserPermissionErrors hook documentation that errors should not be made red, bold, etc.
2008-01-02 02:05:01 +00:00
Victor Vasiliev
b503237a8b
Add user parameter to AutopromoteCondition hook. Document it
2007-12-23 18:33:46 +00:00
Raimond Spekking
0693d79fb6
* (bug 12257) Update some documentation files
...
Patch by Alexandre Emsenhuber
2007-12-10 12:51:45 +00:00
Victor Vasiliev
483f85fcf8
Introduce an "AbortMove" hook
2007-12-08 18:30:00 +00:00
Aaron Schulz
f2b99c88e0
*Add hook when a revision is restored (for flaggedrevs, next commit)
2007-12-07 22:51:00 +00:00
Raimond Spekking
06be63aa1c
* (bug 12174) Update hooks.txt. Change Linker.php to use the hook name directely in wfRunHooks so that
...
maintenance/findhooks.php doesn't say that 'EditSectionLink' and
'EditSectionLinkForOther' aren't found in MediaWiki code.
Patch by Alexandre Emsenhuber
2007-12-03 19:47:11 +00:00
Thomas Bleher
c6f80ed0c6
* Minor style fix:
...
Normally, the function parameter to wfRunHooks() is enclosed in single
quotes. Fix this in includes/SpecialPreferences.php.
* Make maintenance/findhooks.php more tolerant, so it accepts both
quoting styles.
* Fix a typo in hooks.txt (the hook is 'userCan', not 'UserCan').
2007-11-30 17:28:24 +00:00
ThomasV
abf601e0fc
* got rid of magic codes for colours.* added hook for link recolouring by extensions* merged redundant stub tests in one single function, getLinkColour (Linker.php)
...
* deprecated makeStubLink and makeStubLinkObj
2007-11-22 15:54:18 +00:00
David McCabe
5549750977
The uncontroversial Liquid Threads hooks.
...
The hook SkinTemplateTabAction got left in from a previous attempted commit, but the documentation is added in this commit. The other new hooks here are ChangesListInsertArticleLink, MediaWikiPerformAction, and BeforeWatchlist.
2007-11-06 01:16:25 +00:00
Nick Jenkins
fbb88c7b03
Add LogLine hook as per described in the updates to docs/hooks.txt
2007-11-01 07:02:02 +00:00
Aaron Schulz
f4e4edaf3d
*Add and document ArticleRollbackComplete hook. Lets FlaggedRevs be able to autoflag rollbacks when possible.
2007-10-30 07:58:15 +00:00
Aryeh Gregor
1c1399a3c9
There's no such thing as $this in static functions. Thanks, Nikerabbit.
2007-10-21 18:48:55 +00:00
Aryeh Gregor
5ee4c051b4
isValidEmailAddr hook added to User method of that name, to allow, e.g., restricting e-mail addresses to a specific domain
2007-10-21 17:15:37 +00:00
Andrew Garrett
1e0651dce7
* Add a new hook getUserPermissionsErrors, which is a more modern version of the userCan hook. userCan hook marked as deprecated, as this one allows you to actually say to the user WHY they can't edit an article, as opposed to just that they can't.
...
As a side-note, magic_quotes_gpc sucks. Two file-saves with it on, and I spent 45 minutes fixing it up, with a hacky perl script.
2007-10-10 09:56:47 +00:00
Brion Vibber
ccf45d6c91
add missing $article param to ArticleViewHeader doc
2007-09-13 20:16:52 +00:00
Rob Church
03d280b774
Re-alphabetise a few hooks
2007-08-28 21:53:50 +00:00
Tim Laqua
ef7d430773
Added SkinAfterBottomScripts hook to Skin::bottomScripts(), documented in hooks.txt
2007-08-23 22:34:12 +00:00
Aaron Schulz
a3223695ec
Tweak ArticleUpdateBeforeRedirect hook a tad
2007-08-15 22:52:55 +00:00
Aaron Schulz
3343ea495e
*Add ArticleUpdateBeforeRedirect hook, to allow for the page to redirect out differently after editing (needed for flaggedrevs)
...
*Document ArticleUpdateBeforeRedirect hook
2007-08-15 22:13:03 +00:00
Rob Church
03ef70741d
* (bug 10859) Introduce 'UserGetImplicitGroups' hook; see docs/hooks.txt for more information
...
* Move the list of implicit groups in User::getAllGroups() to a new User::getImplicitGroups() method so there's no confusion over where to add these
2007-08-09 16:36:15 +00:00
Daniel Kinzler
04a321cb26
adding generic hook points to SpecialPreferences
2007-07-30 22:52:37 +00:00
Rob Church
6af49f93c1
* Pass new Revision to the 'ArticleInsertComplete' and 'ArticleSaveComplete' hooks; see docs/hooks.txt for more information
...
* Document 'ArticleInsertComplete' hook
2007-07-22 23:16:48 +00:00
Rob Church
3811372d73
Introduce 'UserGetRights' hook; see docs/hooks.txt for more information
2007-07-21 01:00:42 +00:00
Aaron Schulz
ba2e9b1f4f
*Decrappify inefficient hook/link update scheme for this extension
2007-07-18 08:49:24 +00:00
Rob Church
396524f674
Pass the user as an argument to 'isValidPassword' hook callbacks; see docs/hooks.txt for more information
2007-07-17 22:30:52 +00:00
Rob Church
e9aa9d20b9
* Clean up User::isValidPassword()
...
* Document 'isValidPassword' hook
2007-07-17 16:44:40 +00:00
Rob Church
afd0b0dea5
Less verbose; don't bother with "return not evaluated", gives the wrong impression (i.e. hooks *have* to return something) - if the return would affect whether or not an operation occurs, it's probably better to be explicit about this, e.g. "Set $result and return false to override..."
2007-07-16 11:30:27 +00:00
Rob Church
34b282564b
Rename 'SpecialContribSubEnd' hook to more appropriate 'ContributionsToolLinks', pass user identifier as first parameter, correct misleading documentation ($nt is a Title, not a User), use standard language in release notes as for other hooks
2007-07-16 11:21:21 +00:00
Daniel Cannon
2f3c0ca5d1
Document recently added SpecialContribsSubEnd hook, as well as SpecialContributionsBeforeMainOutput (which apparently didn't get documented when it was added).
2007-07-16 07:11:25 +00:00
Aryeh Gregor
9ec190c545
Revert r23617 per Brion
2007-07-02 23:22:39 +00:00
Aryeh Gregor
5f392f7f48
* (bug 10422) Change <pre> on CSS/JS pages to <div> and allow wikitext
...
* Remove now-unused ShowRawCssJs hook, unless someone can think of a reason someone would want to use it when wikitext is allowed inside it
Patch to SyntaxHighlight_GeSHi to come in a moment.
2007-07-01 19:57:30 +00:00
Rob Church
8a2aee5478
Hook callbacks for 'ShowRawCssJs' should do their own output, if so desired; don't trust the text we get back from the hook.
2007-06-29 13:52:54 +00:00
Rob Church
51c3e790e1
Clean up handling of custom CSS and JavaScript pages in Article::view():
...
* Don't use parser cache, output is garbled
* Run 'ShowRawCssJs' hook
2007-06-29 04:31:19 +00:00
Rob Church
32a7750855
* Introduce 'UserEffectiveGroups' hook; see docs/hooks.txt for more information
...
* Add User::getRegistration() accessor
2007-06-27 14:32:31 +00:00
Brion Vibber
e2c9a47729
don't mix spaces and tabs in code examples, or the WHITESPACE GODS SHALL SMITE THEE
2007-06-18 15:37:10 +00:00
Brion Vibber
d08a0019f2
whitespace consistency
2007-06-18 15:34:04 +00:00
Rob Church
ff56ef8158
Add missing $hint to 'EditSectionLink' hook call
2007-06-05 12:54:13 +00:00
Rob Church
50d9bbfef8
(bug 10139) Introduce 'EditSectionLink' and 'EditSectionLinkForOther' hooks; see docs/hooks.txt for details [patch from Jack D. Pond, with small modifications]
2007-06-05 01:50:33 +00:00
Aaron Schulz
686ed73f85
*Document old ArticleViewHeader hook
2007-06-03 22:34:53 +00:00
Aaron Schulz
8fcdd27b0e
*Document some hooks
2007-06-01 13:17:24 +00:00
Antoine Musso
510bd203e9
Documentation for AlternateEdit hook (triggered on &action=new). Been there for ages.
2007-05-19 21:45:07 +00:00
Magnus Manske
46a6e4efe6
New hook 'ImageOpenShowImageInlineBefore' for upcoming extension
2007-05-16 19:52:22 +00:00
Brion Vibber
50c317ff98
Tweak audit hooks
2007-05-08 18:31:32 +00:00
Brion Vibber
f13fc04cbf
* Add hooks for captcha in main user login form
...
* Add hook point for detecting and logging login attempts with invalid password
* Add captcha support for triggering a captcha after a bad password attempt. Legit users shouldn't be inconvenienced much, but password-guesser bots will be severely speedbumped.
2007-05-07 21:54:06 +00:00
Brion Vibber
08833dd4af
Revert 'MonoBookTemplateAboveColumnContent' hook. Seems weirdly skin-specific for no good reason, and generally ugly.
...
There shouldn't be any hook calls in the skin template output at all -- looks like one snuck in before, and it should also be removed and replaced with a general toolbox system. This one won't be allowed to take root first.
2007-05-01 16:31:24 +00:00
Leon Weber
72a85df177
* Added beginnings of WatchlistTicker extension. Works for most cases only,
...
not yet documented, no i18n, not cleaned up; do not use.
* Therefore added 'MonoBookTemplateAboveColumnContent' hook.
2007-04-30 22:29:56 +00:00
River Tarnell
9c06b47065
9697: Adding InternalParseBeforeLinks Parser Hook for Semantic MediaWiki (documentation updates), from Jim R. Wilson
2007-04-25 21:23:43 +00:00
Rob Church
859e431af3
Couple of new hooks; FileUpload and SearchUpdate
2007-04-10 02:18:42 +00:00
Daniel Kinzler
bb4370b2ab
hook point for injecting fields into edit form
2007-04-02 21:53:06 +00:00
Rob Church
80f05ca705
* Update release notes for r20680
...
* Typos in hook documentation
Please remember to document hook additions in both places in future.
2007-03-25 23:42:09 +00:00
Aaron Schulz
446f2d6cab
*Document PageHistoryBeforeList and PageHistoryLineEnding and remove cruft variable from former
2007-03-25 23:20:48 +00:00
Brion Vibber
ddbf0c8423
* Add 'ParserTestTables' hook to expand the list of temporary tables copied
...
by the parser test harness; use for extensions which require the presence
of other tables while they work.
2007-02-09 05:37:44 +00:00
Antoine Musso
ce0fb01d05
New hook: AjaxAddScript. Used to load some more ajax javascripts
2007-01-21 16:46:36 +00:00
Rob Church
e7bf509eab
Introduce 'CustomEditor' hook; see docs/hooks.txt for more information
2007-01-20 19:51:21 +00:00
Rob Church
2d5230dc15
* (bug 8136) Introduce 'ArticleUndelete' hook; see docs/hooks.txt for more info
2007-01-18 07:44:25 +00:00
Rob Church
5cf4e5e937
* Introduce "BookInformation" hook; see docs/hooks.txt for more details
2007-01-16 19:06:56 +00:00
Leon Weber
05b3050d1e
* (bug 8567) Added hook RawPageViewBeforeOutput just before the text is blown out in action=raw,
...
so extensions might influence the output.
2007-01-11 14:50:34 +00:00
Leon Weber
0b5f651045
* Added SkinTemplateOutputPageBeforeExec hook before SkinTemplate::outputPage()
...
starts page output (http://lists.wikimedia.org/pipermail/wikitech-l/2007-January/028554.html )
2007-01-10 15:23:32 +00:00
Brion Vibber
d6039d6698
more 3am centralauth crap woo
...
* dump $wgCentralAuthState in favor of specific toggles for auto-migration and strict enforcement
* plan to improve that :P
* use new hook to add global id on preferences; will want mor edetail there and a fun link and stuff
* drop the funky https link option for now on the wiki list; think about redoing that later
* use paths on wikis where they're not totally plain so i can tell my links apart on my test box
2006-12-30 11:43:42 +00:00
Rob Church
6be73092db
Introduce 'PingLimiter' hook for overriding the result of User::pingLimiter()
2006-12-22 20:21:14 +00:00
Leon Weber
d830450a8a
Added hook 'EditPage::attemptSave' before an article is saved.
2006-12-01 21:18:40 +00:00
Brion Vibber
bab6c59d8b
* Add AuthPluginSetup hook to override $wgAuth after configuration
2006-11-30 07:47:34 +00:00
Ilmari Karonen
a5e26f5c22
Patch from LeonWP: added UploadForm:BeforeProcessing hook in SpecialUpload.php
2006-11-29 18:21:56 +00:00
Andrew Garrett
4edd511598
hooks.txt documentation for UploadForm:initial hook added in r17917
2006-11-25 13:51:50 +00:00
Nick Jenkins
cc15037f29
Minor path update to example Content_action.php file in docs.
2006-10-21 07:10:33 +00:00
Rob Church
eda6563be1
* Introduce 'BadImage' hook; see docs/hooks.txt for more information
2006-07-02 21:54:34 +00:00
Rob Church
048021c14a
(bug 672) Add MathAfterTexvc hook
2006-06-26 15:50:03 +00:00
Rotem Liss
1755a0ff6f
Revert due to brion's request.
2006-06-25 20:00:17 +00:00
Rotem Liss
9accc9babc
Some docs about magic words and the new hooks.
2006-06-25 19:45:31 +00:00
Rob Church
61f169c21b
Introduce 'FetchChangesList' hook; see docs/hooks.txt for more information
2006-06-21 00:18:55 +00:00
Rob Church
e4be20b3be
De-document RunUnknownJob hook, since it no longer exists (will re-add a mechanism to use the improved Job subclassing stuff later)
2006-06-20 23:24:59 +00:00
Rob Church
67ee817f0e
(bug 6095) Introduce RunUnknownJob hook, see docs/hooks.txt for more information
2006-06-15 06:35:24 +00:00
Rob Church
11ea8511f2
Introduce EditFormPreloadText hook, see docs/hooks.txt for more information
2006-06-14 13:12:08 +00:00
Rob Church
710f298b4d
Add hooks to manipulate the sitenotice/anonnotice:
...
* SiteNoticeBefore
* SiteNoticeAfter
2006-06-04 16:55:19 +00:00
Jens Frank
10ad773a43
(bug5077) added BeforePageDisplay hook
2006-05-27 08:23:05 +00:00
Brion Vibber
2fb7f4fdb2
To simplify the lives of extension developers, the logging type arrays can now be appended to directly by an extension setup function. It is no longer necessary to write four separate functions just to add a custom log type.
...
The old hooks for this are retained for backwards compatibility, but are deprecated.
2006-05-25 07:37:20 +00:00
Brion Vibber
6e71a93363
* Add 'DiffViewHeader' hook called before diff page output
2006-05-24 09:05:49 +00:00
Rob Church
7c891d56e5
(bug 5819) Fix the PersonalUrls hook so it's useful
2006-05-17 07:02:06 +00:00
Antoine Musso
111f090a66
Document UnwatchArticleComplete
2006-05-10 15:30:43 +00:00
Rob Church
c18543d893
(bug 5819) Add 'PersonalUrls' hook
2006-05-08 22:20:55 +00:00
Brion Vibber
a843035212
Fix that optional error return for EditFilter hook.
...
Didn't work at all previously, with two entire ways to prevent the value being passed along. :)
2006-05-07 07:26:25 +00:00
Rob Church
f064b66c64
(bug 5841) Allow the 'EditFilter' hook to return a non-fatal error message
2006-05-06 21:41:53 +00:00
Antoine Musso
fa1b7edec3
basic script to find undocumented / deprecated hooks.
2006-05-02 20:59:56 +00:00
Rob Church
1fa272c8f4
Documentation didn't go through...
2006-05-02 20:07:54 +00:00
Brion Vibber
1bd66ea935
* (bug 3884) Add $user parameter to AddNewUser hook, call it for by-email
...
registrations as well as self-registrations.
2006-04-17 04:06:13 +00:00
Rob Church
6021507111
(bug 3359) Add hooks on completion of file upload
2006-04-13 18:29:18 +00:00
Domas Mituzas
9a146b181d
Hooks:UserCan: allow advisory external checks instead of overriding ones
...
This allows targeted rules to be imposed without mocking up with core code too much.
2006-04-04 08:46:06 +00:00
Rob Church
fd2fd4ec47
Add UserRights hook, fires after a user's group memberships are changed
2006-03-29 02:31:15 +00:00
Rob Church
1d24cd2354
Document new hook to avoid brutal stabbing by Vibber the Vicious
2006-02-05 18:53:37 +00:00
Brion Vibber
1e5da17de5
* Adjust user login/creation form hooks to work with a captcha plugin
2006-01-29 07:35:28 +00:00
Brion Vibber
03b9a2303d
* (bug 4104) 'OutputPageBeforeHTML' hook to postprocess article HTML on
...
page view (comes after parser cache, if used). Patch by ThomasV.
http://bugzilla.wikimedia.org/attachment.cgi?id=1290&action=view
http://bugzilla.wikimedia.org/attachment.cgi?id=1296&action=view
http://bugzilla.wikimedia.org/attachment.cgi?id=1297&action=view
2006-01-13 17:00:05 +00:00
Rob Church
fe66cac6cb
* Bug 4456: Add hook for marking article patrolled
2006-01-03 15:45:36 +00:00
Brion Vibber
2ec5f7958b
* Add 'GetInternalURL' hook to match the GetFullURL and GetLocalURL ones
2005-12-26 07:14:42 +00:00
Brion Vibber
e69ea9b6d2
* Added 'PageRenderingHash' hook for changing the parser cache hash key
...
from an extension that changes rendering based on nonstandard options.
2005-12-25 11:04:40 +00:00
Domas Mituzas
ed21293445
AutoAuthenticate hook for external User suppliers
2005-12-20 21:25:54 +00:00
Brion Vibber
02de196586
* Add a hook for additional user creation throttle / limiter extensions
2005-12-17 03:18:39 +00:00
Brion Vibber
c8508a60ee
* Add UploadVerification hook for custom file upload validation/security checks
2005-09-06 04:53:59 +00:00
Niklas Laxström
7a82547da6
typo, i assume
2005-08-18 23:59:01 +00:00
Brion Vibber
380f4da600
* (bug 3175) update filenames in documentation files
2005-08-17 19:48:24 +00:00
Ævar Arnfjörð Bjarmason
545cea89f6
* Added a new hook, 'AddNewAccount', which is run after account creation
2005-08-17 07:44:38 +00:00
Ævar Arnfjörð Bjarmason
ace93db499
* Adding a SkinTemplateContentActions hook to be able to modify the
...
$content_actions array from an extension.
2005-08-09 08:01:55 +00:00
Antoine Musso
a650cff446
lists hooks added in LogPage.php v1.34 by Avar.
2005-07-29 15:08:57 +00:00
Brion Vibber
a1fb3b5306
* (bug 2275) Update search index more or less right on page move
2005-06-01 02:31:45 +00:00
Gabriel Wicke
f3810a3c70
CategoryPageView hook as in 1.4
2005-04-25 11:09:21 +00:00
Brion Vibber
27b500c4aa
Change .doc extension to .txt so people stop asking why we have Word documents. WE DONT THEY ARE TEXT!!!!111eleven
2005-04-12 00:41:38 +00:00