You are here

function event_node_import_static in Node import 5

Implementation of hook_node_import_static().

File

supported/event.inc, line 104

Code

function event_node_import_static($type) {
  if (event_is_enabled($type)) {
    if (variable_get('configurable_timezones', 1) && $user->uid && strlen($user->timezone) && variable_get('event_timezone_input', 'site') == 'user') {
      return array(
        'event_info' => 1,
        'timezone' => event_timezone_map($user->timezone),
      );
    }
    else {
      if (variable_get('event_timezone_input', 'site') != 'input') {
        return array(
          'event_info' => 1,
          'timezone' => event_timezone_map(variable_get('date_default_timezone', 0)),
        );
      }
    }
  }
}