You are here

function country_disable_action in Countries 7.2

Same name and namespace in other branches
  1. 8 countries.module \country_disable_action()

Disable country action

File

./countries.module, line 1040
Defines the field and entity information for countries.

Code

function country_disable_action($country, $context = array()) {
  $country->enabled = 0;
  country_save($country);
}