本文整理汇总了PHP中Modules::remove_by_name方法的典型用法代码示例。如果您正苦于以下问题:PHP Modules::remove_by_name方法的具体用法?PHP Modules::remove_by_name怎么用?PHP Modules::remove_by_name使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Modules
的用法示例。
在下文中一共展示了Modules::remove_by_name方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unregister
/**
* function unregister
* Unregisters a module to remove it from the 'add item' module list
* @param string $name module name
*/
public static function unregister($name)
{
// remove any instances currently on the dashboard
Modules::remove_by_name($name);
self::$available_modules = array_diff(self::$available_modules, array($name));
self::commit_active();
self::commit();
}
示例2: action_plugin_deactivation
/**
* action_plugin_deactivation
* Unregisters the core modules.
* @param string $file plugin file
*/
function action_plugin_deactivation($file)
{
if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) {
Modules::remove_by_name('Latest Entries');
Modules::remove_by_name('Latest Comments');
Modules::remove_by_name('Latest Log Activity');
}
}
示例3: action_plugin_deactivation
/**
* action_plugin_deactivation
* Unregisters the core modules.
* @param string $file plugin file
*/
public function action_plugin_deactivation($file)
{
if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) {
foreach ($this->reports as $rpt => $data) {
Modules::remove_by_name($data['module']);
}
}
}
示例4: action_plugin_deactivation
function action_plugin_deactivation($file)
{
if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) {
// remove the module from the dash if it is active
Modules::remove_by_name('Incoming Links');
// Remove the periodical execution event
CronTab::delete_cronjob('incoming_links');
// Clear the cached links
Cache::expire('incoming_links');
}
}
示例5: action_plugin_deactivation
public function action_plugin_deactivation($file)
{
if (realpath($file) == __FILE__) {
Options::delete('getclicky__siteid');
Options::delete('getclicky__sitekey');
Options::delete('getclicky__sitedb');
Options::delete('getclicky__loggedin');
Options::delete('getclicky__cachetime');
$this->clearCache();
Modules::remove_by_name('GetClicky');
}
}
示例6: action_plugin_deactivation
public function action_plugin_deactivation($file = '')
{
if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) {
ACL::destroy_token('snapshot');
// wipe out the default options we added
Options::delete('exportsnapshot__frequency');
Options::delete('exportsnapshot__type');
// remove the module
Modules::remove_by_name(_t('Snapshots', 'exportsnapshot'));
// @todo what about the snapshots option and deleting those cached items?
// probably an uninstall method too?
}
}
示例7: action_plugin_deactivation
/**
* action_plugin_deactivation
* Unregisters the core modules.
* @param string $file plugin file
*/
function action_plugin_deactivation($file)
{
if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) {
Modules::remove_by_name('Latest Spam');
}
}
示例8: action_plugin_deactivation
/**
* action_plugin_deactivation
* Unregisters the module.
* @param string $file plugin file
*/
function action_plugin_deactivation($file)
{
Modules::remove_by_name('My Tickets');
}
示例9: action_plugin_deactivation
function action_plugin_deactivation($file)
{
Modules::remove_by_name('123LinkIt');
}
示例10: action_plugin_deactivation
public function action_plugin_deactivation($file)
{
if (realpath($file) == __FILE__) {
Modules::remove_by_name('Technorati');
}
}