Thread:Project:Support desk/Article names only numbers with length of 8 or 13/reply (15)

The hook in fact is not called onPageContentSave, but PageContentSave, but in your code you have named it correctly.

Are you maybe using a MediaWiki version older than 1.21? The hook is just not present then, which would explain the issue...