Simple php example of drupal like hook system