Manual:Hooks/ArticlePageDataBefore

Details

 * $article: Article object being requested
 * $fields: fields to load from the database

As mediawiki reads in the page data, this hook allows you to read more data fields related to the same database row. You specify more data fields by adding them to $fields parameter. Such data fields can then be manipulated from  ArticlePageDataAfter.