Skip to content

Instantly share code, notes, and snippets.

@niklaka
niklaka / HelloWorld.module
Created January 5, 2013 15:37
An example on hooking Pages::saveReady to write a hidden value upon page save. Based on HelloWorld.module from ProcessWire default installation, only slight modifications.
<?php
/**
* ProcessWire 'Hello world' demonstration module
*
* Demonstrates the Module interface and how to add hooks.
*
* ProcessWire 2.x
* Copyright (C) 2010 by Ryan Cramer
* Licensed under GNU/GPL v2, see LICENSE.TXT