variable_get

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.

▾ 156 functions call variable_get()

aggregator_page_categories in modules/aggregator.module
Menu callback; displays all the categories used by the aggregator.
aggregator_page_opml in modules/aggregator.module
Menu callback; generates an OPML representation of all feeds.
aggregator_page_sources in modules/aggregator.module
Menu callback; displays all the feeds used by the aggregator.
aggregator_parse_feed in modules/aggregator.module
aggregator_settings in modules/aggregator.module
archive_calendar in modules/archive.module
Generates a monthly calendar, for display in the archive block.
block_list in modules/block.module
Return all blocks in the specied region for the current user. You may
blogapi_blogger_new_post in modules/blogapi.module
Blogging API callback. Inserts a new blog post as a node.
blogapi_menu in modules/blogapi.module
blogapi_rsd in modules/blogapi.module
blogapi_settings in modules/blogapi.module
blog_feed_last in modules/blog.module
Displays an RSS feed containing recent blog entries of all users.
blog_page_last in modules/blog.module
Displays a Drupal page containing recent blog entries of all users.
blog_page_user in modules/blog.module
Displays a Drupal page containing recent blog entries of a given user.
chameleon_page in themes/chameleon/chameleon.theme
check_output in modules/filter.module
Run all the enabled filters on a piece of text.
comment_admin_edit in modules/comment.module
Menu callback; edit a comment from the administrative interface.
comment_configure in modules/comment.module
Menu callback; presents the comment settings page.
comment_link in modules/comment.module
Implementation of hook_link().
comment_nodeapi in modules/comment.module
Implementation of hook_nodeapi().
comment_post in modules/comment.module
comment_render in modules/comment.module
comment_role_settings in modules/comment.module
Menu callback; allows admin to set default scores for different roles.
comment_validate_form in modules/comment.module
contact_mail_user in modules/contact.module
do_search in modules/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_cron in modules/drupal.module
Implementation of hook_cron(); handles pings to and from the site.
drupal_get_private_key in includes/common.inc
Ensure the private key variable used to generate tokens is set.
drupal_help in modules/drupal.module
Implementation of hook_help().
drupal_notify in modules/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_page_header in includes/bootstrap.inc
Set HTTP headers in preparation for a page response.
drupal_settings in modules/drupal.module
Implementation of hook_settings().
drupal_valid_token in includes/common.inc
Validate a token based on $value, the current user session and private key or penultimate private key.
error_handler in includes/common.inc
Log errors as defined by administrator Error levels: 1 = Log errors to database. 2 = Log errors to database and to screen.
fileupload_view in developer/examples/fileupload.module
file_check_directory in includes/file.inc
Check that directory exists and is writable.
file_create_path in includes/file.inc
Make sure the destination is a complete path and resides in the file system directory, if it is not prepend the file system directory.
file_create_url in includes/file.inc
Create the download path to a file.
file_save_data in includes/file.inc
Save a string to the specified destination
file_save_upload in includes/file.inc
Saves a file upload to a new location. The source file is validated as a proper upload and handled as such.
filter_access in modules/filter.module
Returns true if the user is allowed to access this format.
filter_admin_delete in modules/filter.module
Menu callback; confirm deletion of a format.
filter_admin_overview in modules/filter.module
Menu callback; allows administrators to set up input formats.
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.module
Implementation of hook_filter_tips().
filter_form in modules/filter.module
Generate a selector for choosing a format in a form.
filter_formats in modules/filter.module
Retrieve a list of input formats.
filter_xss_bad_protocol in modules/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.
format_name in includes/common.inc
Format a username.
forum_admin in modules/forum.module
Administration page which allows maintaining forums
forum_admin_configure in modules/forum.module
Implementation of hook_settings
forum_block in modules/forum.module
Implementation of hook_block().
forum_get_forums in modules/forum.module
Returns a list of all forums for a given taxonomy id
forum_link in modules/forum.module
Implementation of hook_link().
forum_overview in modules/forum.module
Returns an overview list of existing forums and containers
forum_page in modules/forum.module
Menu callback; prints a forum listing.
forum_validate in modules/forum.module
Implementation of hook_validate().
forum_view in modules/forum.module
Implementation of hook_view().
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_init in developer/hooks/core.php
Perform setup tasks.
hook_settings in developer/hooks/core.php
Declare administrative settings for a module.
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_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.
module_list in includes/module.inc
Collect a list of all loaded modules. During the bootstrap, return only vital modules. See bootstrap.inc
nodeapi_example_nodeapi in developer/examples/nodeapi_example.module
Implementation of hook_nodeapi().
node_configure in modules/node.module
Menu callback; presents general node configuration options.
node_feed in modules/node.module
A generic function for generating RSS feeds from a set of nodes.
node_form in modules/node.module
Generate the node editing form.
node_help in modules/node.module
Implementation of hook_help().
node_nodeapi in modules/node.module
Implementation of hook_nodeapi().
node_page_default in modules/node.module
Generate a listing of promoted nodes.
node_search in modules/node.module
Implementation of hook_search().
node_teaser in modules/node.module
Automatically generate a teaser for a node body in a given format.
node_types_configure in modules/node.module
Menu callback; presents each node type configuration page.
node_update_index in modules/node.module
Implementation of hook_update_index().
node_validate in modules/node.module
Perform validation checks on the given node.
ping_cron in modules/ping.module
Implementation of hook_cron().
profile_view_field in modules/profile.module
queue_settings in modules/queue.module
queue_view in modules/queue.module
Display a queued node along with voting options for it.
queue_vote in modules/queue.module
search_admin in modules/search.module
Menu callback; displays the search module settings page.
search_help in modules/search.module
Implementation of hook_help().
search_index in modules/search.module
Update the full-text search index for a particular item.
statistics_block in modules/statistics.module
Implementation of hook_block().
statistics_cron in modules/statistics.module
Implementation of hook_cron().
statistics_exit in modules/statistics.module
Implementation of hook_exit().
statistics_link in modules/statistics.module
Implementation of hook_link().
statistics_settings in modules/statistics.module
Implementation of hook_settings().
statistics_top_pages in modules/statistics.module
Menu callback; presents the "Top pages" page.
statistics_top_referrers in modules/statistics.module
Menu callback; presents the "Top referrers" page.
statistics_top_users in modules/statistics.module
Menu callback; presents the "Top users" page.
system_settings_save in modules/system.module
system_theme_listing in modules/system.module
Generate a list of all the available theme/style combinations.
system_theme_settings in modules/system.module
Menu callback; display theme configuration for entire site and individual themes.
system_user in modules/system.module
Implementation of hook_user().
system_view_general in modules/system.module
taxonomy_render_nodes in modules/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.module
Finds all nodes that match selected taxonomy conditions.
taxonomy_term_page in modules/taxonomy.module
Menu callback; displays all nodes associated with a term.
theme_comment_form in modules/comment.module
theme_comment_post_forbidden in modules/comment.module
theme_forum_display in modules/forum.module
Format the forum body.
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_user_picture in modules/user.module
throttle_exit in modules/throttle.module
Implementation of hook_exit().
throttle_settings in modules/throttle.module
Implementation of hook_settings().
throttle_status in modules/throttle.module
Determine the current load on the site.
update_104 in database/updates.inc
update_108 in database/updates.inc
update_119 in database/updates.inc
update_123 in database/updates.inc
update_126 in database/updates.inc
update_99 in database/updates.inc
update_page in ./update.php
upload_admin in modules/upload.module
upload_munge_filename in modules/upload.module
Munge the filename as needed for security purposes.
upload_nodeapi in modules/upload.module
Implementation of hook_nodeapi().
url in includes/common.inc
Generate an internal Drupal URL.
user_authenticate in modules/user.module
user_block in modules/user.module
Implementation of hook_block().
user_configure_settings in modules/user.module
user_edit_form in modules/user.module
user_file_download in modules/user.module
Implementation of hook_file_download().
user_help in modules/user.module
Implementation of hook_help().
user_login in modules/user.module
user_mail in modules/user.module
Send an e-mail message.
user_menu in modules/user.module
Implementation of hook_menu().
user_pass in modules/user.module
user_register in modules/user.module
user_validate_picture in modules/user.module
watchdog_cron in modules/watchdog.module
Implementation of hook_cron().
xtemplate_page in themes/engines/xtemplate/xtemplate.engine
_aggregator_page_list in modules/aggregator.module
Prints an aggregator page listing a number of feed items. Various menu callbacks use this function to print their feeds.
_blogapi_get_node_types in modules/blogapi.module
_db_query in includes/database.pgsql.inc
Helper function for db_query().
_filter_html in modules/filter.module
HTML filter. Provides filtering of input into accepted HTML.
_filter_html_settings in modules/filter.module
Settings for the HTML filter.
_forum_get_vid in modules/forum.module
Returns the vocabulary id for forum navigation.
_forum_icon in modules/forum.module
_legacy_filter_old_urls in modules/legacy.module
Rewrite legacy URLs.
_locale_export_po in includes/locale.inc
Exports a Portable Object (Template) file for a language
_profile_date_field in modules/profile.module
Helper function: output a date selector
_system_zonelist in modules/system.module
_upload_image in modules/upload.module
Check an upload, if it is an image, make sure it fits within the maximum dimensions allowed.
_user_mail_text in modules/user.module

Code

includes/bootstrap.inc, line 151

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

  return isset($conf[$name]) ? $conf[$name] : $default;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.