variable_get

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

includes/bootstrap.inc, строка 449

Версии
5 – 6
variable_get($name, $default)

Возвращает постоянную переменную.

Параметры

$name Имя возвращаемой переменной.

$default Значение по умолчанию, которое используется если переменная никогда не была установлена.

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

Значение переменной.

▾ 254 функции вызывают variable_get()

aggregator_admin_settings in modules/aggregator/aggregator.module
Конструктор формы; настройка агрегатора.
aggregator_filter_xss in modules/aggregator/aggregator.module
Безопасный рендер html
aggregator_page_categories in modules/aggregator/aggregator.module
Коллбэк меню; показывает все категории, используемые аггрегатором.
aggregator_page_category in modules/aggregator/aggregator.module
Menu callback; displays all the items aggregated in a particular category.
aggregator_page_last in modules/aggregator/aggregator.module
Menu callback; displays the most recent items gathered from any feed.
aggregator_page_list in modules/aggregator/aggregator.module
aggregator_page_opml in modules/aggregator/aggregator.module
Коллбэк меню; генерирует представление OPML из всех фидов.
aggregator_page_rss in modules/aggregator/aggregator.module
Коллбэк меню. Генерирует фид из материалов аггергатора или категорий в формате RSS 0.92.
aggregator_page_sources in modules/aggregator/aggregator.module
Коллбэк меню; показывает все фиды, используемые аггрегатором.
aggregator_parse_feed in modules/aggregator/aggregator.module
block_admin_display in modules/block/block.module
Generate main block administration form.
block_example_block in developer/examples/block_example.module
Реализация hook_block().
block_example_contents in developer/examples/block_example.module
Функция определяющая содержимое блока.
block_list in modules/block/block.module
Return all blocks in the specified region for the current user.
block_menu in modules/block/block.module
Реализация hook_menu().
blogapi_admin_settings in modules/blogapi/blogapi.module
blogapi_blogger_new_post in modules/blogapi/blogapi.module
Коллбэк Blogging API. Вставляет новую запись блога как ноду.
blogapi_metaweblog_new_media_object in modules/blogapi/blogapi.module
Коллбэк Blogging API. Вставляет файл в Друпал.
blogapi_status_error_check in modules/blogapi/blogapi.module
Check that the user has permission to save the node with the chosen status.
blog_feed_last in modules/blog/blog.module
Displays an RSS feed containing recent blog entries of all users.
blog_feed_user in modules/blog/blog.module
Displays an RSS feed containing recent blog entries of a given user.
blog_page_last in modules/blog/blog.module
Коллбэк меню. Показывает страницу Друпал с последними записями в блогах пользователей.
blog_page_user in modules/blog/blog.module
Показывает страницу Друпал с последними записями в блоге данного пользователя.
cache_clear_all in includes/cache.inc
Очищает кэш. Если вызывается без аргументов, то очищаются таблицы с кэшами страниц и блоков.
cache_get in includes/cache.inc
Return data from the persistent cache.
chameleon_page in themes/chameleon/chameleon.theme
color_form_alter in modules/color/color.module
Реализация hook_form_alter().
color_get_palette in modules/color/color.module
Helper function to retrieve the color palette for a particular theme.
color_scheme_form in modules/color/color.module
Конструктор формы. Возвращает форму конфигурирования.
color_scheme_form_submit in modules/color/color.module
Submit handler for color change form.
comment_admin_settings in modules/comment/comment.module
Menu callback; presents the comment settings page.
comment_form in modules/comment/comment.module
comment_form_alter in modules/comment/comment.module
comment_link in modules/comment/comment.module
Реализация hook_link().
comment_nodeapi in modules/comment/comment.module
Реализация hook_nodeapi().
comment_render in modules/comment/comment.module
Отображает комментарии.
comment_save in modules/comment/comment.module
Сохраняет новый или измененный комментарий.
comment_update_1 in modules/comment/comment.install
Changed node_comment_statistics to use node->changed to avoid future timestamps.
comment_validate in modules/comment/comment.module
Проверка данных комментария.
contact_admin_settings in modules/contact/contact.module
contact_mail_page in modules/contact/contact.module
contact_mail_user_submit in modules/contact/contact.module
Process the personal contact page form submission.
contact_site_page in modules/contact/contact.module
Site-wide contact page
contact_user in modules/contact/contact.module
Реализация hook_user().
contact_user_page in modules/contact/contact.module
Страница персональных контактов.
default_profile_final in profiles/default/default.profile
Perform any final installation tasks for this profile.
do_search in modules/search/search.module
Do a query on the full-text search index for a word or words.
drupal_access_denied in includes/common.inc
Генерирует ошибку 403 если для просмотра страницы недостаточно прав.
drupal_auth in modules/drupal/drupal.module
Implementation of hook_auth().
drupal_cron in modules/drupal/drupal.module
Implementation of hook_cron(); handles pings to and from the site.
drupal_cron_cleanup in includes/common.inc
Shutdown function for cron cleanup.
drupal_cron_run in includes/common.inc
При вызове выполняет задачи cron
drupal_distributed_authentication_settings in modules/drupal/drupal.module
drupal_get_css in includes/common.inc
Returns a themed representation of all stylesheets that should be attached to the page. It loads the CSS in order, with 'core' CSS first, then 'module' CSS, then 'theme' CSS files. This ensures proper cascading of styles...
drupal_get_private_key in includes/common.inc
Гарантирует, что переменная персонального ключа, которая используется для генерации токенов установлена.
drupal_help in modules/drupal/drupal.module
Реализация hook_help().
drupal_init_path in includes/path.inc
Initialize the $_GET['q'] variable to the proper normal path.
drupal_is_front_page in includes/path.inc
Проверяет, является ли текущая страница главной.
drupal_login in modules/drupal/drupal.module
Callback function from drupal_xmlrpc() for authenticating remote clients.
drupal_mail in includes/common.inc
Send an e-mail message, using Drupal variables and default settings. More information in the PHP function reference for mail()
drupal_menu in modules/drupal/drupal.module
Реализация hook_menu().
drupal_notify in modules/drupal/drupal.module
Sends a ping to the Drupal directory server.
drupal_not_found in includes/common.inc
Генерирует ошибку 404 (страница не найдена) если запрос не удалось обработать.
drupal_page_footer in includes/common.inc
Perform end-of-request tasks.
drupal_sites_registry_settings in modules/drupal/drupal.module
drupal_site_offline in includes/common.inc
Generates a site off-line message
drupal_system_listing in includes/common.inc
Returns an array of files objects of the given type from the site-wide directory (i.e. modules/), the all-sites directory (i.e. sites/all/modules/), the profiles directory, and site-specific directory (i.e. sites/somesite/modules/). The returned array...
drupal_urlencode in includes/common.inc
Wrapper around urlencode() which avoids Apache quirks.
drupal_valid_token in includes/common.inc
Проверяет корректность соотношения уникального значения (токена) к ключу, основанному на параметре $value, сессии пользователя и приватного ключа сайта.
drupal_xmlrpc in modules/drupal/drupal.module
Implementation of hook_xmlrpc().
error_handler in includes/common.inc
Log errors as defined by administrator Error levels: 0 = Log errors to database. 1 = Log errors to database and to screen.
example_element_demo in developer/examples/example_element.module
This is a simple form to demonstrate how to use the phonenumber form element we defined.
example_profile_tasks in ./example.profile
Perform any final installation tasks for this profile.
expand_date in includes/form.inc
Roll out a single date element.
file_create_url in includes/file.inc
Формирует путь для скачивания файла.
file_directory_path in includes/file.inc
Определяет адрес по умолчанию для папки 'files' (папка хранения файлов, загруженных пользователями и т.п.)
file_directory_temp in includes/file.inc
Определеляет папку по умолчанию для хранения временных файлов.
file_get_mimetype in includes/file.inc
Determine an Internet Media Type, or MIME type from a filename.
filter_access in modules/filter/filter.module
Returns TRUE if the user is allowed to access this format.
filter_admin_delete in modules/filter/filter.module
Menu callback; confirm deletion of a format.
filter_admin_delete_submit in modules/filter/filter.module
Process filter delete form submission.
filter_admin_format_form in modules/filter/filter.module
Generate a filter format form.
filter_admin_overview in modules/filter/filter.module
Displays a list of all input formats and which one is the default
filter_example_filter in developer/examples/filter_example.module
Реализация hook_filter().
filter_example_filter_tips in developer/examples/filter_example.module
Реализация hook_filter_tips().
filter_filter_tips in modules/filter/filter.module
Реализация hook_filter_tips().
filter_form in modules/filter/filter.module
Generate a selector for choosing a format in a form.
filter_formats in modules/filter/filter.module
Retrieve a list of input formats.
filter_list_format in modules/filter/filter.module
Возвращает список форматов ввода для выбранного формата.
filter_resolve_format in modules/filter/filter.module
Resolve a format id, including the default format.
filter_xss_bad_protocol in modules/filter/filter.module
Обрабатывает значение HTML-аттрибута и проверяет, чтобы он не содержал URL с запрещённым протоколом (например, javascript:)
format_date in includes/common.inc
Форматирует дату в заданном формате или в формате настроек сайта.
forum_admin_settings in modules/forum/forum.module
forum_block in modules/forum/forum.module
Реализация hook_block().
forum_form_submit in modules/forum/forum.module
Process forum form and container form submissions.
forum_get_forums in modules/forum/forum.module
Returns a list of all forums for a given taxonomy id
forum_overview in modules/forum/forum.module
Returns an overview list of existing forums and containers
forum_page in modules/forum/forum.module
Menu callback; prints a forum listing.
forum_taxonomy in modules/forum/forum.module
Implementation of hook_taxonomy().
forum_validate in modules/forum/forum.module
Implementation of hook_validate().
forum_view in modules/forum/forum.module
Реализация hook_view().
hook_auth in developer/hooks/authentication.php
Проверяет аутентификацию пользователя.
hook_block in developer/hooks/core.php
Определяет блок или набор блоков.
hook_footer in developer/hooks/core.php
Вставляет закрывающий HTML.
hook_form_alter in developer/hooks/core.php
Позволяет вносить изменения в форму перед её показом.
hook_init in developer/hooks/core.php
Выполняет задачи по инициализации.
hook_link in developer/hooks/core.php
Определяет внутренние ссылки Drupal.
hook_mail_alter in developer/hooks/core.php
Alter any aspect of the emails sent by Drupal. You can use this hook to add a common site footer to all outgoing emails; add extra header fields and/or modify the mails sent out in any way. HTML-izing the outgoing mails is one possibility. See also...
hook_node_type in developer/hooks/node.php
Позволяет модулям осуществлять действия при изменении типа нод.
hook_requirements in developer/hooks/install.php
Check installation requirements that need to be satisfied.
hook_search in developer/hooks/core.php
Определяет пользовательскую функцию поиска.
hook_taxonomy in developer/hooks/core.php
Выполняется при изменениях таксономии.
hook_update_index in developer/hooks/core.php
Обновляет полнотекстовый индекс Друпала для данного модуля.
image_gd_close in includes/image.inc
GD helper to write an image resource to a destination file.
image_gd_settings in includes/image.inc
Retrieve settings for the GD2 toolkit.
image_get_toolkit in includes/image.inc
Retrieve the name of the currently used toolkit.
init_theme in includes/theme.inc
Инициализирует систему темизации и загружает тему.
menu_configure in modules/menu/menu.module
Menu callback; presents menu configuration options.
menu_form_alter in modules/menu/menu.module
Implementation of hook_form_alter(). Add menu item fields to the node form.
menu_primary_links in includes/menu.inc
Returns an array containing the primary links. Can optionally descend from the root of the Primary links menu towards the current node for a specified number of levels and return that submenu. Used to generate a primary/secondary menu from different...
menu_secondary_links in includes/menu.inc
Returns an array containing the secondary links. Secondary links can be either a second level of the Primary links menu or generated from their own menu.
module_list in includes/module.inc
Генерирует список всех загруженных модулей. В ходе инициализации (бутстрапа), возвращает только жизненно важные модули. Смотри bootstrap.inc
multipage_form_example_load in developer/examples/multipage_form_example.module
Implementation of hook_load().
nodeapi_example_form_alter in developer/examples/nodeapi_example.module
Реализация hook_form_alter().
nodeapi_example_nodeapi in developer/examples/nodeapi_example.module
Реализация hook_nodeapi().
node_configure in modules/node/node.module
Menu callback; presents general node configuration options.
node_feed in modules/node/node.module
A generic function for generating RSS feeds from a set of nodes.
node_form in modules/node/node.module
Generate the node add/edit form array.
node_form_add_preview in modules/node/node.module
node_menu in modules/node/node.module
Реализация hook_menu().
node_page_default in modules/node/node.module
Menu callback; Generate a listing of promoted nodes.
node_search in modules/node/node.module
Implementation of hook_search().
node_teaser in modules/node/node.module
Чтобы автоматически создать teaser для ноды body.
node_type_form in modules/node/content_types.inc
Generates the node type editing form.
node_update_index in modules/node/node.module
Реализация hook_update_index().
path_form in modules/path/path.module
Return a form for editing or creating an individual URL alias.
phptemplate_page in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_page function to be passed into a pluggable template engine. Uses the arg() function to generate a series of page template files suggestions based on the current path. If none are found, the default page.tpl.php...
ping_cron in modules/ping/ping.module
Реализация hook_cron().
profile_block in modules/profile/profile.module
Реализация hook_block().
profile_view_field in modules/profile/profile.module
search_admin_settings in modules/search/search.module
Menu callback; displays the search module settings page.
search_admin_settings_validate in modules/search/search.module
Validate callback.
search_expand_cjk in modules/search/search.module
Basic CJK tokenizer. Simply splits a string into consecutive, overlapping sequences of characters ('minimum_word_size' long).
search_index in modules/search/search.module
Update the full-text search index for a particular item.
search_simplify in modules/search/search.module
Simplifies a string according to indexing rules.
statistics_access_logging_settings in modules/statistics/statistics.module
statistics_block in modules/statistics/statistics.module
Реализация hook_block().
statistics_cron in modules/statistics/statistics.module
Реализация hook_cron().
statistics_exit in modules/statistics/statistics.module
Implementation of hook_exit().
statistics_menu in modules/statistics/statistics.module
Реализация hook_menu().
statistics_top_pages in modules/statistics/statistics.module
Menu callback; presents the 'top pages' page.
statistics_top_referrers in modules/statistics/statistics.module
Menu callback; presents the 'referrer' page.
statistics_top_visitors in modules/statistics/statistics.module
Menu callback; presents the 'top visitors' page.
system_admin_compact_mode in modules/system/system.module
Determine if a user is in compact mode.
system_admin_theme_settings in modules/system/system.module
This function allows selection of the theme to show in administration sections.
system_admin_theme_submit in modules/system/system.module
system_clean_url_settings in modules/system/system.module
system_date_time_settings in modules/system/system.module
system_error_reporting_settings in modules/system/system.module
system_file_system_settings in modules/system/system.module
system_image_toolkit_settings in modules/system/system.module
system_initialize_theme_blocks in modules/system/system.module
Assign an initial, default set of blocks for a theme.
system_menu in modules/system/system.module
Реализация hook_menu().
system_node_type in modules/system/system.module
Implementation of hook_node_type().
system_performance_settings in modules/system/system.module
system_requirements in modules/system/system.install
Test and report Drupal installation requirements.
system_rss_feeds_settings in modules/system/system.module
system_site_information_settings in modules/system/system.module
system_site_maintenance_settings in modules/system/system.module
system_themes in modules/system/system.module
Menu callback; displays a listing of all themes.
system_themes_submit in modules/system/system.module
system_theme_select_form in modules/system/system.module
Returns a fieldset containing the theme select form.
system_theme_settings in modules/system/system.module
Menu callback; display theme configuration for entire site and individual themes.
system_update_1002 in modules/system/system.install
system_update_1019 in modules/system/system.install
Change variable format for user-defined e-mails.
system_update_1020 in modules/system/system.install
Change break tag back (was removed from head).
system_update_1021 in modules/system/system.install
Update two more variables that were missing from system_update_1019.
system_update_119 in modules/system/system.install
system_update_123 in modules/system/system.install
system_update_126 in modules/system/system.install
system_update_132 in modules/system/system.install
system_update_135 in modules/system/system.install
system_update_137 in modules/system/system.install
system_update_145 in modules/system/system.install
system_update_151 in modules/system/system.install
system_update_160 in modules/system/system.install
system_update_165 in modules/system/system.install
system_update_170 in modules/system/system.install
system_update_177 in modules/system/system.install
system_update_178 in modules/system/system.install
Update base paths for relative URLs in node and comment content.
system_update_179 in modules/system/system.install
Update base paths for relative URLs in custom blocks, profiles and various variables.
system_user in modules/system/system.module
Реализация hook_user().
taxonomy_render_nodes in modules/taxonomy/taxonomy.module
Принимает результат вызова pager_query(), такой как, например, возвращает taxonomy_select_nodes(), и форматирует каждую ноду вместе с листалкой страниц.
taxonomy_select_nodes in modules/taxonomy/taxonomy.module
Находит все ноды, которые соответствуют выбранным условиям таксономии.
taxonomy_term_page in modules/taxonomy/taxonomy.module
Menu callback; displays all nodes associated with a term.
theme_aggregator_page_item in modules/aggregator/aggregator.module
Format an individual feed item for display on the aggregator page.
theme_comment_post_forbidden in modules/comment/comment.module
Темизирует уведомление "вы не можете оставить комментарий".
theme_forum_display in modules/forum/forum.module
Format the forum body.
theme_forum_icon in modules/forum/forum.module
Format the icon for each individual topic.
theme_forum_topic_navigation in modules/forum/forum.module
Format the next/previous forum topic navigation links.
theme_get_setting in includes/theme.inc
Получает значение указанной настройки темы.
theme_get_settings in includes/theme.inc
Retrieve an associative array containing the settings for a theme.
theme_page in includes/theme.inc
Return an entire Drupal page displaying the supplied content.
theme_username in includes/theme.inc
Форматирует имя пользователя.
theme_user_picture in modules/user/user.module
throttle_admin_settings in modules/throttle/throttle.module
throttle_exit in modules/throttle/throttle.module
Implementation of hook_exit().
throttle_status in modules/throttle/throttle.module
Determine the current load on the site.
update_fix_access_table in ./update.php
update_fix_schema_version in ./update.php
If the schema version for Drupal core is stored in the variables table (4.6.x and earlier) move it to the schema_version column of the system table.
update_fix_sessions in ./update.php
System update 130 changes the sessions table, which breaks the update script's ability to use session variables. This changes the table appropriately.
update_fix_watchdog in ./update.php
System update 142 changes the watchdog table, which breaks the update script's ability to use logging. This changes the table appropriately.
update_fix_watchdog_115 in ./update.php
System update 115 changes the watchdog table, which breaks the update script's ability to use logging. This changes the table appropriately.
upload_admin_settings in modules/upload/upload.module
Menu callback for the upload settings form.
upload_form_alter in modules/upload/upload.module
upload_js in modules/upload/upload.module
Коллбэк меню для JavaScript загрузок файлов.
upload_menu in modules/upload/upload.module
Реализация hook_menu().
upload_munge_filename in modules/upload/upload.module
Munge the filename as needed for security purposes.
upload_nodeapi in modules/upload/upload.module
Implementation of hook_nodeapi().
url in includes/common.inc
Генерирует URL из указанного пути меню. Также поддерживает уже существующие URL.
user_admin_settings in modules/user/user.module
user_block in modules/user/user.module
Реализация hook_block().
user_edit_form in modules/user/user.module
user_file_download in modules/user/user.module
Implementation of hook_file_download().
user_help in modules/user/user.module
Реализация hook_help().
user_login in modules/user/user.module
user_login_block in modules/user/user.module
user_menu in modules/user/user.module
Реализация hook_menu().
user_pass_submit in modules/user/user.module
user_register in modules/user/user.module
user_register_submit in modules/user/user.module
user_validate_picture in modules/user/user.module
watchdog_cron in modules/watchdog/watchdog.module
Реализация hook_cron().
_blogapi_get_node_types in modules/blogapi/blogapi.module
_color_page_alter in modules/color/color.module
Callback for the theme to alter the resources used.
_comment_get_display_setting in modules/comment/comment.module
Возвращает текущие настройки отображения комментариев.
_db_query in includes/database.mysql.inc
Вспомогательная функция для db_query().
_drupal_bootstrap in includes/bootstrap.inc
_drupal_cache_init in includes/bootstrap.inc
Initialize the caching strategy, which loads at different stages within Drupal's bootstrap process.
_filter_html in modules/filter/filter.module
HTML filter. Provides filtering of input into accepted HTML.
_filter_html_settings in modules/filter/filter.module
Settings for the HTML filter.
_filter_url in modules/filter/filter.module
URL filter. Automatically converts text web addresses (URLs, e-mail addresses, ftp links, etc.) into hyperlinks.
_filter_url_settings in modules/filter/filter.module
Settings for URL filter.
_forum_get_vid in modules/forum/forum.module
Returns the vocabulary id for forum navigation.
_legacy_filter_old_urls in modules/legacy/legacy.module
Rewrite legacy URLs.
_locale_export_po in includes/locale.inc
Exports a Portable Object (Template) file for a language
_menu_site_is_offline in includes/menu.inc
Возвращает TRUE, если сайт находится в автономном режиме "на обслуживании".
_search_parse_query in modules/search/search.module
Helper function for search_parse_query();
_system_zonelist in modules/system/system.module
_upload_form in modules/upload/upload.module
_upload_image in modules/upload/upload.module
Check an upload, if it is an image, make sure it fits within the maximum dimensions allowed.
_upload_prepare in modules/upload/upload.module
Save new uploads and attach them to the node object. append file_previews to the node object as well.
_upload_validate in modules/upload/upload.module
_user_mail_text in modules/user/user.module

Код

<?php
function variable_get($name, $default) {
  global $conf;

  return isset($conf[$name]) ? $conf[$name] : $default;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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