variable_get
includes/bootstrap.inc, line 449
- Versions
- 4.6 – 6
variable_get($name, $default)- 7
variable_get($name, $default = NULL)
Return a persistent variable.
Parameters
$name The name of the variable to return.
$default The default value to use if this variable has never been set.
Return value
The value of the variable.
▾ 253 functions call variable_get()
- aggregator_admin_settings in modules/aggregator/aggregator.module
- aggregator_filter_xss in modules/aggregator/aggregator.module
- Safely render HTML content, as allowed.
- aggregator_page_categories in modules/aggregator/aggregator.module
- Menu callback; displays all the categories used by the aggregator.
- 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
- Menu callback; generates an OPML representation of all feeds.
- aggregator_page_rss in modules/aggregator/aggregator.module
- Menu callback; generate an RSS 0.92 feed of aggregator items or categories.
- aggregator_page_sources in modules/aggregator/aggregator.module
- Menu callback; displays all the feeds used by the aggregator.
- 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
- Implementation of hook_block().
- block_example_contents in developer/examples/block_example.module
- A block content function.
- 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
- Implementation of hook_menu().
- blogapi_admin_settings in modules/blogapi/blogapi.module
- blogapi_blogger_new_post in modules/blogapi/blogapi.module
- Blogging API callback. Inserts a new blog post as a node.
- blogapi_metaweblog_new_media_object in modules/blogapi/blogapi.module
- Blogging API callback. Inserts a file into Drupal.
- 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
- Displays a Drupal page containing recent blog entries of all users.
- blog_page_user in modules/blog/blog.module
- Displays a Drupal page containing recent blog entries of a given user.
- cache_clear_all in includes/cache.inc
- Expire data from the cache. If called without arguments, expirable entries will be cleared from the cache_page table.
- 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
- Implementation of 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
- Form callback. Returns the configuration form.
- 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
- Implementation of hook_link().
- comment_nodeapi in modules/comment/comment.module
- Implementation of hook_nodeapi().
- comment_render in modules/comment/comment.module
- Renders comment(s).
- comment_save in modules/comment/comment.module
- Accepts a submission of new or changed comment content.
- 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
- Implementation of hook_user().
- contact_user_page in modules/contact/contact.module
- Personal contact page.
- 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
- Generates a 403 error if the request is not allowed.
- 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
- Executes a cron run when called
- 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
- Ensure the private key variable used to generate tokens is set.
- drupal_help in modules/drupal/drupal.module
- Implementation of 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
- Check if the current page is the front page.
- 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
- Implementation of hook_menu().
- drupal_notify in modules/drupal/drupal.module
- Sends a ping to the Drupal directory server.
- drupal_not_found in includes/common.inc
- Generates a 404 error if the request can not be handled.
- 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
- Validate a token based on $value, the current user session and private key.
- 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.
- expand_date in includes/form.inc
- Roll out a single date element.
- file_create_url in includes/file.inc
- Create the download path to a file.
- file_directory_path in includes/file.inc
- Determine the default 'files' directory.
- file_directory_temp in includes/file.inc
- Determine the default temporary directory.
- 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
- Implementation of hook_filter().
- filter_example_filter_tips in developer/examples/filter_example.module
- Implementation of hook_filter_tips().
- filter_filter_tips in modules/filter/filter.module
- Implementation of 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
- Retrieve a list of filters for a certain format.
- 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
- Processes an HTML attribute value and ensures it does not contain an URL with a disallowed protocol (e.g. javascript:)
- format_date in includes/common.inc
- Format a date with the given configured format or a custom format string.
- forum_admin_settings in modules/forum/forum.module
- forum_block in modules/forum/forum.module
- Implementation of 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
- Implementation of hook_view().
- hook_auth in developer/hooks/authentication.php
- Verify authentication of a user.
- hook_block in developer/hooks/core.php
- Declare a block or set of blocks.
- hook_footer in developer/hooks/core.php
- Insert closing HTML.
- hook_form_alter in developer/hooks/core.php
- Perform alterations before a form is rendered.
- hook_init in developer/hooks/core.php
- Perform setup tasks.
- hook_link in developer/hooks/core.php
- Define internal Drupal links.
- 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
- Act on node type changes.
- hook_requirements in developer/hooks/install.php
- Check installation requirements that need to be satisfied.
- hook_search in developer/hooks/core.php
- Define a custom search routine.
- hook_taxonomy in developer/hooks/core.php
- Act on taxonomy changes.
- hook_update_index in developer/hooks/core.php
- Update Drupal's full-text index for this module.
- 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
- Initialize the theme system by loading the theme.
- 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
- Collect a list of all loaded modules. During the bootstrap, return only vital modules. See 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
- Implementation of hook_form_alter().
- nodeapi_example_nodeapi in developer/examples/nodeapi_example.module
- Implementation of 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
- Implementation of 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
- Automatically generate a teaser for a node body.
- node_type_form in modules/node/content_types.inc
- Generates the node type editing form.
- node_update_index in modules/node/node.module
- Implementation of 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
- Implementation of hook_cron().
- profile_block in modules/profile/profile.module
- Implementation of 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
- Implementation of hook_block().
- statistics_cron in modules/statistics/statistics.module
- Implementation of hook_cron().
- statistics_exit in modules/statistics/statistics.module
- Implementation of hook_exit().
- statistics_menu in modules/statistics/statistics.module
- Implementation of 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
- Implementation of 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
- Implementation of hook_user().
- taxonomy_render_nodes in modules/taxonomy/taxonomy.module
- Accepts the result of a pager_query() call, such as that performed by taxonomy_select_nodes(), and formats each node along with a pager.
- taxonomy_select_nodes in modules/taxonomy/taxonomy.module
- Finds all nodes that match selected taxonomy conditions.
- 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
- Retrieve a setting for the current theme. This function is designed for use from within themes & engines to determine theme settings made in the admin interface.
- 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
- Format a username.
- 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
- Menu-callback for JavaScript-based uploads.
- upload_menu in modules/upload/upload.module
- Implementation of 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
- Generate a URL from a Drupal menu path. Will also pass-through existing URLs.
- user_admin_settings in modules/user/user.module
- user_block in modules/user/user.module
- Implementation of 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
- Implementation of hook_help().
- user_login in modules/user/user.module
- user_login_block in modules/user/user.module
- user_menu in modules/user/user.module
- Implementation of 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
- Implementation of 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
- Return a current comment display setting
- _db_query in includes/database.pgsql.inc
- Helper function for 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
- Returns TRUE if the site is off-line for maintenance.
- _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
Code
<?php
function variable_get($name, $default) {
global $conf;
return isset($conf[$name]) ? $conf[$name] : $default;
}
?> 