module_exists

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/module.inc, строка 228

Версии
5 – 6
module_exists($module)

Определяет, существует ли указанный модуль.

Параметры

$module Имя модуля (без расширения .module).

Возвращаемое значение

TRUE если модуль установлен и включён.

▾ 30 функции вызывают module_exists()

block_admin_display_form in modules/block/block.admin.inc
Generate main blocks administration form.
block_help in modules/block/block.module
Реализация hook_help().
blogapi_mt_validate_terms in modules/blogapi/blogapi.module
Blogging API helper - find allowed taxonomy terms for a node type.
chameleon_node in themes/chameleon/chameleon.theme
contact_help in modules/contact/contact.module
Реализация hook_help().
hook_search in developer/hooks/core.php
Определяет пользовательскую функцию поиска.
language_list in includes/bootstrap.inc
Формирует список установленных языков, индексированных по указанному ключу
menu_get_active_help in includes/menu.inc
Возвращает справку связанную с активизированным пунктом меню.
module_disable in includes/module.inc
Отключает заданный набор модулей.
node_admin_nodes in modules/node/node.admin.inc
Form builder: Builds the node administration overview.
node_filters in modules/node/node.admin.inc
List node administration filters that can be applied.
node_revision_revert_confirm_submit in modules/node/node.pages.inc
node_search in modules/node/node.module
Реализация hook_search().
path_admin_overview in modules/path/path.admin.inc
Return a listing of all defined URL aliases. When filter key passed, perform a standard search on the given key, and return the list of matching URL aliases.
phptemplate_preprocess_page in themes/garland/template.php
Override or insert PHPTemplate variables into the templates.
system_admin_by_module in modules/system/system.admin.inc
Menu callback; prints a listing of admin tasks for each installed module.
system_help in modules/system/system.module
Реализация hook_help().
system_modules in modules/system/system.admin.inc
Menu callback; provides module enable/disable interface.
system_requirements in modules/system/system.install
Test and report Drupal installation requirements.
system_theme_settings in modules/system/system.admin.inc
Form builder; display theme configuration for entire site and individual themes.
system_update_6018 in modules/system/system.install
Add HTML corrector to HTML formats or replace the old module if it was in use.
template_preprocess_block_admin_display_form in modules/block/block.admin.inc
Process variables for block-admin-display.tpl.php.
template_preprocess_node in includes/theme.inc
Обрабатывает переменные для node.tpl.php
theme_aggregator_block_item in modules/aggregator/aggregator.module
Format an individual feed item for display in the block.
theme_get_settings in includes/theme.inc
Retrieve an associative array containing the settings for a theme.
theme_system_modules in modules/system/system.admin.inc
Темизирует форму модулей.
trigger_access_check in modules/trigger/trigger.module
Access callback for menu system.
update_results_page in ./update.php
user_edit_form in modules/user/user.module
_block_get_cache_id in modules/block/block.module
Assemble the cache_id to use for a given block.

Код

<?php
function module_exists($module) {
  $list = module_list();
  return array_key_exists($module, $list);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему