getUser(); $user->setNewtalk( false ); $this->getResult()->addValue( null, $this->getModuleName(), 'success' ); } public function isWriteMode() { return true; } public function mustBePosted() { return false; } public function getDescription() { return array( 'Clears the hasmsg flag for current user.' ); } public function getExamples() { return array( 'api.php?action=clearhasmsg' => 'Clears the hasmsg flag for current user', ); } public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:ClearHasMsg'; } }