You are here

function bat_unit_unpublish in Booking and Availability Management Tools for Drupal 7

VBO action: Unpublish unit.

1 string reference to 'bat_unit_unpublish'
bat_unit_action_info in modules/bat_unit/bat_unit.module
Implements hook_action_info().

File

modules/bat_unit/bat_unit.module, line 427

Code

function bat_unit_unpublish(&$unit, $context) {
  $unit->status = 0;
  $unit
    ->save();
}