You are here

function availability_calendars_variable_del_all in Availability Calendars 6

Same name and namespace in other branches
  1. 6.2 availability_calendars.install \availability_calendars_variable_del_all()
  2. 7.2 availability_calendars.install \availability_calendars_variable_del_all()

Utility function that is an altered version of variable_del, it will delete a set of variables set by a module.

Parameters

string $name The variables' namespace for which to delete:

File

./availability_calendars.install, line 109
Install, update and uninstall functions for the Availability Calendars module.

Code

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