コード例 #1
0
ファイル: example.php プロジェクト: vishnugopal/pluggable-php
function hello()
{
    pluggable_serve("before_welcome_message");
    $message = NULL;
    pluggable_serve("replace_welcome_message", $message);
    echo non_null_of($message, "Hello World");
    echo "\n";
}
コード例 #2
0
/**
 * Returns the plugins path
 * @param options A list of options to configure serve
 * @return string The plugin path (usually "plugins") 
 */
function pluggable_plugin_path($options)
{
    return non_null_of(array_safe_get($options, "plugins_path"), "plugins");
}