You are here

function bat_unit_publish in Booking and Availability Management Tools for Drupal 7

VBO action: Publish unit.

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

File

modules/bat_unit/bat_unit.module, line 419

Code

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