Exemplo n.º 1
0
/**
 * Hooks on the plugin's install function, creates database tables and
 * configuration options for the class.
 *
 * @version 1.0
 * @since 1.0
 */
function install_FOX_uGroupKeyRing()
{
    $cls = new FOX_uGroupKeyRing();
    try {
        $cls->install();
    } catch (FOX_exception $child) {
        // If the error is being thrown because the table already exists,
        // just discard it
        if ($child->data['child']->data['numeric'] != 2) {
            throw new FOX_exception(array('numeric' => 1, 'text' => "Error creating db table", 'file' => __FILE__, 'line' => __LINE__, 'method' => __METHOD__, 'child' => $child));
        }
    }
}