variable_del

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

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

Версии
5 – 6
variable_del($name)

Удаляет хранимую переменную.

Параметры

$name Имя удаляемой переменной.

▾ 32 функции вызывают variable_del()

aggregator_uninstall in modules/aggregator/aggregator.install
Реализация hook_uninstall().
color_scheme_form_submit in modules/color/color.module
Submit handler for color change form.
comment_node_type in modules/comment/comment.module
Реализация hook_node_type().
comment_update_6002 in modules/comment/comment.install
Changed comment settings from global to per-node -- copy global settings to all node types.
contact_uninstall in modules/contact/contact.install
Реализация hook_uninstall().
drupal_cron_cleanup in includes/common.inc
Shutdown function for cron cleanup.
drupal_cron_run in includes/common.inc
При вызове выполняет задачи cron
example_profile_tasks in ./example.profile
Perform any final installation tasks for this profile.
forum_taxonomy in modules/forum/forum.module
Implementation of hook_taxonomy().
forum_uninstall in modules/forum/forum.install
Реализация hook_uninstall().
hook_node_type in developer/hooks/node.php
Позволяет модулям осуществлять действия при изменении типа нод.
hook_uninstall in developer/hooks/install.php
Служит для удаления таблиц и переменных модуля.
install_tasks in ./install.php
Tasks performed after the database is initialized.
locale_update_6005 in modules/locale/locale.install
Change language setting variable of content types.
menu_rebuild in includes/menu.inc
(Пере)заполняет таблицы базы данных, используемые различными функциями меню.
multipage_form_example_delete in developer/examples/multipage_form_example.module
Реализация hook_delete().
node_access_needs_rebuild in modules/node/node.module
Устанавливает/снимает флаг перестройки права доступа ноды или возвращает текущее значение флага.
node_type_form_submit in modules/node/content_types.inc
Implementation of hook_form_submit().
profile_uninstall in modules/profile/profile.install
Реализация hook_uninstall().
search_uninstall in modules/search/search.install
Реализация hook_uninstall().
statistics_uninstall in modules/statistics/statistics.install
Реализация hook_uninstall().
system_settings_form_submit in modules/system/system.module
Execute the system_settings_form.
system_themes_form_submit in modules/system/system.admin.inc
Process system_themes_form form submissions.
system_theme_settings_submit in modules/system/system.admin.inc
Process system_theme_settings form submissions.
system_update_6017 in modules/system/system.install
Rename settings related to user.module email notifications.
system_update_6021 in modules/system/system.install
Migrate the menu items from the old menu system to the new menu_links table.
system_update_6036 in modules/system/system.install
Change the search schema and indexing.
system_update_6042 in modules/system/system.install
Upgrade recolored theme stylesheets to new array structure.
system_update_6044 in modules/system/system.install
RC1 to RC2 index cleanup.
update_settings_submit in modules/update/update.settings.inc
Submit handler for the settings tab.
update_uninstall in modules/update/update.install
Реализация hook_uninstall().
_update_remove_update_status_variables in modules/update/update.install
Private helper to clear out stale variables from update_status 5.x contrib. See alsoupdate_install()

Код

<?php
function variable_del($name) {
  global $conf;

  db_query("DELETE FROM {variable} WHERE name = '%s'", $name);
  cache_clear_all('variables', 'cache');

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

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