Example #1
0
<?php

require_once 'pluggable.php';
pluggable_init();
function hello()
{
    pluggable_serve("before_welcome_message");
    $message = NULL;
    pluggable_serve("replace_welcome_message", $message);
    echo non_null_of($message, "Hello World");
    echo "\n";
}
hello();
Example #2
0
/**
 * Reloads the pluggable cache from cached options
 * @return NULL 
 */
function pluggable_reload()
{
    $options = $pluggable_cache['_options'];
    pluggable_init($options);
}