Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

register_plugin()

Parameters

ColumnTypeDefaultDescription
$plugin

Location

include/plugin_functions.php lines 1457 to 1478

Definition

 
function register_plugin($plugin)
    {
    global 
$plugins,$language,$pagename,$lang,$applicationname;

    
# Also include plugin hook file for this page.
    
if ($pagename=="collections_frameless_loader"){$pagename="collections";}
    
    
$pluginpath=get_plugin_path($plugin);
        
    
$hookpath=$pluginpath "/hooks/" $pagename ".php";
    if (
file_exists($hookpath)) {include_once $hookpath;}
    
    
# Support an 'all' hook
    
$hookpath=$pluginpath "/hooks/all.php";
    if (
file_exists($hookpath)) {include_once $hookpath;}

    
# Support standard location for API bindings
    
$api_bindings_path=$pluginpath "/api/api_bindings.php";
    if (
file_exists($api_bindings_path)) {include_once $api_bindings_path;}

    return 
true;    
    }

This article was last updated 19th April 2024 23:35 Europe/London time based on the source file dated 18th April 2024 17:15 Europe/London time.