本文整理匯總了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