Manual:Hooks/MovePageCheckPermissions/pl

This page is a translated version of the page Manual:Hooks/MovePageCheckPermissions and the translation is 12% complete.
MovePageCheckPermissions
Dostępne od wersji version 1.25.0
Specify whether the user is allowed to move the page.
Zdefiniuj funkcję:
public static function onMovePageCheckPermissions( Title $oldTitle, Title $newTitle, User $user, $reason, Status $status ) { ... }
Dołącz hak: W extension.json:
{
	"Hooks": {
		"MovePageCheckPermissions": "MediaWiki\\Extension\\MyExtension\\Hooks::onMovePageCheckPermissions"
	}
}
Called from: Plik(i): MovePage.php
Interface: MovePageCheckPermissionsHook.php

For more information about attaching hooks, see Podręcznik:Haki .
For examples of extensions using this hook, see Category:MovePageCheckPermissions extensions/pl.

Szczegóły

  • $oldTitle: Title object of the current (old) location
  • $newTitle: Title object of the new location
  • $user: User making the move
  • $reason: string of the reason provided by the user
  • $status: Status object to pass error messages to