This project is not covered by Drupal’s security advisory policy.

Provides the ability to synchronize events to third-party calendars such Google Calendar. Supports insert, update and delete operations for node entities that have a date range field.

Requires the Google API Client PHP Library.

The module requires an external library, Composer must be used.

composer require "drupal/syncal"

Getting Started

Google Calendar API Setup

Developer Console setup

  1. Go to Google Developer Console
  2. Create a project
  3. Enable "Google Calendar API" for the new project
  4. Back on the main "Dashboard" page, under the main menu, click on "Credentials"
  5. Create "Create credentials"
  6. Click "OAuth client ID"
  7. Select "Web application"
  8. Give it a name, e.g. "SynCal Connect OAuth"
  9. Under "Authorized redirect URIs" type LOCAL_DOMAIN://syncal/user/syncal/google_calendar Replace LOCAL_DOMAIN with your local environment, development or production domain
    e.g. http://localhost/syncal/user/syncal/google_calendar
  10. Click "Save"
  11. Under "OAuth 2.0 client IDs" you should see the Web application client ID
    created on the previous step, click on its name
  12. At the top, click on "DOWNLOAD JSON". This file will be required on a later step

Local & other environments setup

  1. In order to test on a local environment, the domain must name localhost, e.g.
    http://dev.localhost/syncal
  2. Go to /admin/config/syncal/settings
  3. Select the content types(s) that should sync up to Google Calendar
  4. Select the "Date range field" that will be used as the date value
  5. Click on "Save configuration"
  6. Click on the "Google Calendar" tab
  7. Upload the JSON filed downloaded on step 12 from the Developer Console setup section

Project information

Releases