You are here

function availability_calendars_save in Availability Calendars 6

Same name and namespace in other branches
  1. 5 availability_calendars.module \availability_calendars_save()

Saves a set of dates associated with the node after editing it.

Parameters

object $node: Node information to save into the database.

1 call to availability_calendars_save()
availability_calendars_nodeapi in ./availability_calendars.module
Implementation hook node_nodeapi().

File

./availability_calendars.module, line 824
Availability Calendars Module.

Code

function availability_calendars_save(&$node) {
  variable_set('availability_calendars_settings_node_' . $node->nid . '_startofweek', $node->startofweek);
  variable_set('availability_calendars_settings_node_' . $node->nid . '_showkey', $node->showkey);
  variable_set('availability_calendars_settings_node_' . $node->nid . '_firstletter', $node->firstletter);
  variable_set('availability_calendars_settings_node_' . $node->nid . '_hideold', $node->hideold);
  variable_set('availability_calendars_settings_node_' . $node->nid . '_defaultstatus', $node->defaultstatus);
  variable_set('availability_calendars_settings_node_' . $node->nid . '_showteaser', $node->showteaser);
}