You appear to be a bot. Output may be restricted
Description
Implement "oik_query_libs" for oikWhen the oik-lib shared library plugin is active we can register the libraries that we 'Provide' by responding to this filter. The libraries should be defined with their dependencies. There is no need to define oik_boot nor bwtrace as these are pre-requisite libraries. The libraries are NOT loaded at this time, just checked and registered using oik_lib_check_libs() to build the OIK_lib objects for each library that actually exists.
Usage
$array = oik_query_libs_query_libs( $libraries );
Parameters
- $libraries
- ( array ) required – array of OIK_libs
Returns
array updated array of OIK_libsSource
File name: oik/oik.phpLines:
1 to 32 of 32
function oik_query_libs_query_libs( $libraries ) { $libs = array( "bobbforms" => "bobbfunc" , "oik-admin" => "bobbforms" , "oik-sc-help" => "class-BW-" , "oik-activation" => "oik-depends" , "oik-depends" => null , "oik_plugins" => null , "oik_themes" => null , "bobbfunc" => null , "oik-autoload" => null , "oik-honeypot" => "bobbforms" , "class-oik-remote" => null , "class-oik-update" => "class-oik-remote" , "class-bobbcomp" => null , "class-dependencies-cache" => null , "class-BW-" => null , "oik-l10n" => null , "bw_fields" => null , 'oik-shortcodes' => null ); $new_libraries = oik_lib_check_libs( $libraries, $libs, "oik" ); // @TODO Replace this temporary fiddle of the version of bobbfunc with something more acceptable //$last = end( $new_libraries ); //$last->version = "3.0.0"; //$versions = array( "bobbfunc" => "3.0.0" ); //$new_libraries = oik_lib_set_lib_versions( $libraries, $libs, $versions, "oik" ); bw_trace2( $new_libraries, "new libraries", true, BW_TRACE_VERBOSE ); return( $new_libraries ); }View on GitHub View on Trac