当前位置: 首页>>代码示例>>PHP>>正文


PHP module_addhook函数代码示例

本文整理汇总了PHP中module_addhook函数的典型用法代码示例。如果您正苦于以下问题:PHP module_addhook函数的具体用法?PHP module_addhook怎么用?PHP module_addhook使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了module_addhook函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: customeq_install

function customeq_install()
{
    module_addhook("lodge");
    module_addhook("pointsdesc");
    module_addhook("charstats");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:customeq.php

示例2: proveyourself_install

function proveyourself_install()
{
    $condition = "if (\$session['user']['location'] == \"Pleasantville\") {return true;} else {return false;};";
    module_addhook("village", false, $condition);
    module_addhook("footer-hof");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:proveyourself.php

示例3: jeweler_install

function jeweler_install()
{
    $condition = "if (\$session['user']['location'] == \"Improbable Central\") {return true;} else {return false;};";
    module_addhook("village", false, $condition);
    module_addhook("biostat");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:jeweler.php

示例4: gravebless_install

function gravebless_install()
{
    module_addhook("ramiusfavors");
    module_addhook("dragonkilltext");
    module_addhook("newday");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:gravebless.php

示例5: peerpressure_install

function peerpressure_install()
{
    module_addeventhook("village", "require_once(\"modules/peerpressure.php\"); return peerpressure_victimtest();");
    module_addhook("newday");
    module_addhook("battle-defeat");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:peerpressure.php

示例6: crying_install

function crying_install()
{
    global $session;
    module_addeventhook("inn", "require_once(\"modules/crying.php\"); return crying_seentest();");
    module_addhook("newday");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:crying.php

示例7: mountprereq_install

function mountprereq_install()
{
    module_addhook("stables-nav");
    module_addhook("boughtmount");
    module_addhook("dragonkill");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:mountprereq.php

示例8: unclean_install

function unclean_install()
{
    module_addhook("censor");
    module_addhook("header-badword");
    module_addhook("biostat");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:unclean.php

示例9: pinata_install

function pinata_install()
{
    module_addeventhook("forest", "return 100;");
    module_addhook("gardens");
    module_addhook("newday");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:pinata.php

示例10: improbablehousing_furnitureshop_install

function improbablehousing_furnitureshop_install()
{
    $condition = "if (\$session['user']['location'] == \"Improbable Central\") {return true;} else {return false;};";
    module_addhook("village", false, $condition);
    module_addhook("improbablehousing_sleepslot");
    return true;
}
开发者ID:Beeps,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:improbablehousing_furnitureshop.php

示例11: specialcomments_install

function specialcomments_install()
{
    module_addhook("commentary");
    module_addhook("lodge");
    module_addhook("postcomment");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:specialcomments.php

示例12: eqbuffhelper_install

function eqbuffhelper_install()
{
    module_addhook("forest");
    module_addhook("newday");
    module_addhook("village");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:eqbuffhelper.php

示例13: sethsong_install

function sethsong_install()
{
    // Convert the seenbard field.
    $sql = "DESCRIBE " . db_prefix("accounts");
    $result = db_query($sql);
    while ($row = db_fetch_assoc($result)) {
        if ($row['Field'] == "seenbard") {
            $sql = "SELECT seenbard,acctid FROM " . db_prefix("accounts") . " WHERE seenbard>0";
            $result1 = db_query($sql);
            debug("Migrating seenbard.`n");
            while ($row1 = db_fetch_assoc($result1)) {
                $sql = "INSERT INTO " . db_prefix("module_userprefs") . " (modulename,setting,userid,value) VALUES ('seth','been',{$row1['acctid']},{$row1['seenbard']})";
                db_query($sql);
            }
            //end while
            debug("Dropping seenbard column from the user table.`n");
            $sql = "ALTER TABLE " . db_prefix("accounts") . " DROP seenbard";
            db_query($sql);
            //drop it from the user's session too.
            unset($session['user']['seenbard']);
        }
        //end if
    }
    //end while
    module_addhook("inn");
    module_addhook("newday");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:28,代码来源:sethsong.php

示例14: iitemcrates_install

function iitemcrates_install()
{
    module_addhook("worldnav");
    module_addhook("newday-runonce");
    module_addhook("donation");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:iitemcrates.php

示例15: heidi_install

function heidi_install()
{
    $condition = "if (\$session['user']['location'] == \"Kittania\") {return true;} else {return false;};";
    module_addhook("village", false, $condition);
    module_addhook("newday");
    return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:heidi.php


注:本文中的module_addhook函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。