Go to the source code of this file.
Functions | |
wfRunHooks ($event, $args=array()) | |
Because programmers assign to $wgHooks, we need to be very careful about its contents. |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Definition in file Hooks.php.
wfRunHooks | ( | $ | event, | |
$ | args = array() | |||
) |
Because programmers assign to $wgHooks, we need to be very careful about its contents.
So, there's a lot more error-checking in here than would normally be necessary.
Definition at line 31 of file Hooks.php.
References $wgHooks, $wgOut, wfProfileIn(), and wfProfileOut().
Referenced by UploadForm::__construct(), DifferenceEngine::__construct(), DatabaseOracle::__construct(), OutputPage::addCategoryLinks(), LoginForm::addNewAccount(), LoginForm::addNewAccountInternal(), LoginForm::addNewAccountMailPassword(), OutputPage::addParserOutput(), OutputPage::addParserOutputNoText(), afterContentHook(), MediaWiki::articleFromTitle(), SpecialResetpass::attemptReset(), LoginForm::authenticateUserData(), bottomScripts(), SkinTemplate::buildContentActionUrls(), ProtectionForm::buildForm(), SkinVector::buildNavigationUrls(), SkinTemplate::buildNavUrls(), SkinTemplate::buildPersonalUrls(), buildSidebar(), User::canSendEmail(), Autopromote::checkCondition(), OutputPage::checkLastModified(), User::clearNotification(), Parser::clearState(), Article::commitRollback(), User::comparePasswords(), Article::confirmDelete(), User::confirmEmail(), SpecialContributions::contributionsSub(), UploadBase::createFromRequest(), User::crypt(), ApiDelete::delete(), do_all_updates(), Block::doAutoblock(), FileDeleteForm::doDelete(), Article::doDelete(), Article::doEdit(), Linker::doEditSectionLink(), SpecialRecentChanges::doMainQuery(), RecentChange::doMarkPatrolled(), RevDel_RevisionList::doPostCommitUpdates(), UserrightsPage::doSaveUserGroups(), MovePageForm::doSubmit(), EmailUserForm::doSubmit(), Article::doUnwatch(), SearchUpdate::doUpdate(), LinksUpdate::doUpdate(), HTMLCacheUpdate::doUpdate(), LinkHolderArray::doVariants(), Article::doWatch(), WikiExporter::dumpFrom(), EditPage::edit(), Article::editUpdates(), SpecialUpload::execute(), SpecialStatistics::execute(), SpecialContributions::execute(), ApiUndelete::execute(), ApiQuery::execute(), ApiLogout::execute(), ApiLogin::execute(), ApiEditPage::execute(), ApiMain::executeAction(), ApiQuery::executeGeneratorModule(), SpecialVersion::extensionCredits(), extensionTabLinks(), ApiQueryInfo::extractPageInfo(), Article::fetchContent(), Parser_LinkHooks::firstCallInit(), Parser::firstCallInit(), UsersPager::formatRow(), ContribsPager::formatRow(), User::getAllRights(), Autopromote::getAutopromoteGroups(), User::getBlockedStatus(), OutputPage::getCacheVaryCookies(), EditPage::getCheckboxes(), getCopyright(), EditPage::getCopywarn(), UsersPager::getDefaultQuery(), DifferenceEngine::getDiffBody(), EditPage::getEditButtons(), EditPage::getEditToolbar(), User::getEffectiveGroups(), User::getEmail(), User::getEmailAuthenticationTimestamp(), SpecialRecentChanges::getExtraOptions(), ApiBase::getFinalParamDescription(), ApiBase::getFinalParams(), Title::getFullURL(), LocalFile::getHistory(), User::getImplicitGroups(), Title::getInternalURL(), Title::getLocalURL(), Language::getMagic(), MessageCache::getMsgFromNamespace(), SearchEngine::getNearMatch(), SearchEngine::getNearMatchInternal(), User::getNewMessageLinks(), UsersPager::getPageHeader(), User::getPageRenderingHash(), ParserTest::getParser(), User::getPasswordValidity(), EmailUserForm::getPermissionsError(), Preferences::getPreferences(), EditPage::getPreviewText(), UsersPager::getQueryInfo(), ContribsPager::getQueryInfo(), HistoryPager::getQueryInfo(), RandomPage::getRandomTitle(), Title::getRestrictionTypes(), User::getRights(), SpecialSearch::getSearchProfiles(), UploadForm::getSourceSection(), Language::getSpecialPageAliases(), WantedPagesPage::getSQL(), DeletedContributionsPage::getSubTitle(), User::getToggles(), ApiQueryUsers::getTokenFunctions(), ApiQueryRevisions::getTokenFunctions(), ApiQueryRecentChanges::getTokenFunctions(), ApiQueryInfo::getTokenFunctions(), Title::getUserPermissionsErrorsInternal(), MagicWord::getVariableIDs(), Parser::getVariableValue(), SpecialSearch::goResult(), HistoryPage::history(), HistoryPager::historyLine(), ImageHistoryList::imageHistoryLine(), EditPage::importFormData(), MediaWiki::initializeArticle(), SpecialPage::initList(), ChangesList::insertArticleLink(), Revision::insertOn(), EditPage::internalAttemptSave(), Parser::internalParse(), User::invalidateEmail(), User::isBlockedFrom(), User::isBlockedGlobally(), User::isEmailConfirmed(), Article::isFileCacheable(), User::isUsableName(), User::isValidEmailAddr(), Title::isValidMoveOperation(), Linker::link(), LinksUpdate::LinksUpdate(), ChangeTags::listDefinedTags(), ParserTest::listTables(), User::load(), User::loadDefaults(), ImagePage::loadFile(), User::loadFromDatabase(), User::loadFromSession(), User::loadOptions(), LogEventsList::logLine(), User::logout(), LoginForm::mailPassword(), LoginForm::mailPasswordInternal(), LoginForm::mainLoginForm(), Linker::makeExternalImage(), Linker::makeExternalLink(), Parser::makeImage(), Linker::makeImageLink2(), MergehistoryForm::merge(), Title::moveOverExistingRedirect(), Title::moveTo(), Title::moveToNewTitle(), UserArray::newFromResult(), TitleArray::newFromResult(), ChangesList::newFromUser(), EditPage::noSuchSectionPage(), XmlDumpWriter::openPage(), ImagePage::openShowImage(), OutputPage::output(), SkinTemplate::outputPage(), Article::pageData(), Parser::parse(), MediaWiki::performAction(), MediaWiki::performRequestForTitle(), UploadBase::performUpload(), User::pingLimiter(), SpecialUpload::processUpload(), Article::purge(), Article::quickEdit(), LocalisationCache::recache(), OldChangesList::recentChangesLine(), LocalFile::recordUpload2(), MathRenderer::render(), Parser::renderImageGallery(), DifferenceEngine::renderNewRevision(), VectorTemplate::renderPortals(), MessageCache::replace(), LinkHolderArray::replaceInternal(), SearchEngine::replacePrefixes(), ImportReporter::reportPage(), RecentChange::save(), ProtectionForm::save(), User::saveOptions(), User::saveSettings(), SearchEngine::searchableNamespaces(), PrefixSearch::searchBackend(), User::setCookies(), User::setEmail(), User::setEmailAuthenticationTimestamp(), Article::setOldSubtitle(), SkinTemplate::setupPageCss(), EditPage::showConflict(), Article::showCssOrJsPage(), EditPage::showDiff(), DifferenceEngine::showDiffPage(), EditPage::showEditForm(), IPBlockForm::showForm(), SpecialSearch::showHit(), IPUnblockForm::showList(), SpecialBookSources::showList(), ProtectionForm::showLogExtract(), Article::showMissingArticle(), EditPage::showPreview(), Article::showRedirectedFromHeader(), SpecialSearch::showResults(), UndeleteForm::showRevision(), ImagePage::showTOC(), EditPage::showTosSummary(), SpecialVersion::softwareInformation(), Parser::statelessFetchTemplate(), subPageSubtitle(), LoginForm::successfulCreation(), LoginForm::successfulLogin(), SkinTemplate::tabAction(), ImageGallery::toHTML(), MonoBookTemplate::toolbox(), ModernTemplate::toolbox(), Preferences::tryFormSubmit(), UndeleteForm::undelete(), PageArchive::undeleteRevisions(), WatchlistEditor::unwatchTitles(), Article::updateArticle(), Article::updateRestrictions(), Title::userCanRead(), UploadBase::verifyUpload(), RawPage::view(), ImagePage::view(), CategoryPage::view(), Article::view(), wfGetSiteNotice(), wfIsBadImage(), wfIsTrustedProxy(), wfMsgGetKey(), wfSpecialUserlogout(), wfSpecialWatchlist(), and XmlDumpWriter::writeRevision().