You are here

function flag_flag::disable in Flag 7.3

Same name and namespace in other branches
  1. 5 flag.inc \flag_flag::disable()
  2. 6.2 flag.inc \flag_flag::disable()
  3. 6 flag.inc \flag_flag::disable()
  4. 7.2 flag.inc \flag_flag::disable()

Disable a flag provided by a module.

File

includes/flag/flag_flag.inc, line 1499
Contains the flag_flag class. Flag type classes use an object oriented style inspired by that of Views 2.

Class

flag_flag
This abstract class represents a flag, or, in Views 2 terminology, "a handler".

Code

function disable() {
  if (isset($this->module)) {
    $flag_status = variable_get('flag_default_flag_status', array());
    $flag_status[$this->name] = FALSE;
    variable_set('flag_default_flag_status', $flag_status);
  }
}