Account created on 20 January 2012, over 12 years ago
#

Merge Requests

Recent comments

🇮🇳India sadashiv

Have provided a update for this, please merge so that it can be released and we can use for our production site.

Thanks,
Sadashiv.

🇮🇳India sadashiv

Any update on this, I want to deploy this change on production.

Thanks,
Sadashiv.

🇮🇳India sadashiv

I tried a slight modified version of your code snipped but no luck

$row->_entity->get('custom_147')->first()->get('entity') returns the entity but the target_id still has label.

I created a PR at https://github.com/eileenmcnaughton/civicrm_entity/pull/465

Thanks,
Sadashiv.

🇮🇳India sadashiv

Yes, I tried that well and I get label i.e. display_name of the contact and not the contact id.

Thanks,
Sadashiv.

🇮🇳India sadashiv

Please review my changes.

Thanks,
Sadashiv.

🇮🇳India sadashiv

Please merge.

Thanks,
Sadashiv

🇮🇳India sadashiv

Hi,

Can we have a release which works with drupal 10 as drupal 9 has reached end of life

Thanks,
Sadashiv

🇮🇳India sadashiv

Hi,

Can we have a release which works with drupal 10 as drupal 9 has reached end of life

Thanks,
Sadashiv

🇮🇳India sadashiv

Hi,

Can we have a release of vimeo upload which works with drupal 10 as drupal 9 has reached end of life

Thanks,
Sadashiv

🇮🇳India sadashiv

Patch #5 works, I think this should be released as 2.0.0-alpha1 breaks in it's current state.

Thanks,
Sadashiv.

🇮🇳India sadashiv

Hi,

The module is designed to fetch the refresh token and use it to reauthenticate the app and store the then retrieved access token in the account, so ideally once authenticated there should be no need to reauthenticate.

If you are using it as a standalone service for the server I recommend using a service account instead of a authenticated account, that never fails for authentication, if you still want to continue using the standard client, we need to debug whether the access token has a refresh token set in it.

Thanks,
Sadashiv.

🇮🇳India sadashiv

Hi,

This module depends on what is provided by the Google Api Php Client Services so once google develops the library and provides it for public then we can use it, as I can see they have not provided it yet so the module can't offer it, if you want to still use it then you can use some hook and add scopes to the google api client entity and authenticate it and then code to call the api using raw request using Google_Client class. I know it is more difficult this way but as of now we don't have option

Thanks,
Sadashiv

🇮🇳India sadashiv

Thanks everyone, this will be included in next release

Thanks,
Sadashiv

🇮🇳India sadashiv

Hi @pradpnayak

Thanks for the merge request.

Will put it out in next release.

Thanks,
Sadashiv

🇮🇳India sadashiv

#20 works, thank you for that.

Thanks,
Sadashiv.

🇮🇳India sadashiv

Hi All,

I was having the same problem, after debugging form_state etc I finally found a solution that we need to use $form_state->getUserInput() to get the textfield value.

Thanks,
Sadashiv

🇮🇳India sadashiv

I was trying to do something similar, I ended up,
1) Create a quicktabs using UI
2) In code $qt = \Drupal\quicktabs\Entity\QuickTabsInstance::load('QT_ID');
3)

$configuration_data = [
      [
        'title'=> 'Node 1',
        'weight'=> 0,
        'type' => 'node_content',
        'content' => [
          'node_content' => [
            'options' => [
              'nid' => '1',
              'view_mode' => 'full',
              'hide_title' => true,
            ],
          ],
        ],
      ],
      [
        'title'=> 'Node', 2
        'weight'=> 1,
        'type' => 'node_content',
        'content' => [
          'node_content' => [
            'options' => [
              'nid' => '2',
              'view_mode' => 'full',
              'hide_title' => true,
            ],
          ],
        ],
      ],
    ];

Simple try is to configure the qt using UI and check the export and form this configuration array
4) $qt->setConfigurationData($configuration_data);
5) $qt->getRenderArray() returns the rederer array which can then be returned or passed through drupal renderer.

Thanks,
Sadashiv.

🇮🇳India sadashiv

Hi @RustedBucket,

I think you are trying to operate on calendar fields so you need to use Calendar API, CalendarList is something different.
You can read google documentations at https://developers.google.com/calendar/api/concepts/events-calendars#cal...
https://developers.google.com/calendar/api/v3/reference/calendarList/update
https://developers.google.com/calendar/api/v3/reference/calendars/update
etc

From the Documentation Description can't be set using the CalendarList but is supported only by Calendar, The php api client library has the function but that is out of the scope of this module and can be reported to the library github.

Thanks,
Sadashiv.

🇮🇳India sadashiv

Hi,

I would suggest trying minor change
Use
$postBody = new \Google\Service\Calendar\Calendar();
or
$postBody = new \Google_Service_Calendar_Calendar();
instead of
$postBody = new \Google_Service_Calendar_CalendarListEntry();

and the api call change to

$service->calendars->patch($calendar_id, $postBody);

so the final code should look like

    $google_api_service_client = \Drupal::entityTypeManager()->getStorage('google_api_service_client')->load('my_service_account');
    $googleService = \Drupal::service('google_api_service_client.client');
    $googleService->setGoogleApiClient($google_api_service_client);

    $googleService->googleClient->setSubject($calendar_id);

    $service = new \Google_Service_Calendar($googleService->googleClient);

    // THIS WORKS: This will return the calendar information fine
    $service->calendarList->get($calendar_id);

    $postBody = new \Google_Service_Calendar_Calendar();
    $postBody->setDescription('Some new description');
    $service->calendars->patch($calendar_id, $postBody);

Hth,
Sadashiv

🇮🇳India sadashiv

Thanks for updating this info, as you mentioned the email expected is of the end user I can't implement a genarilsed fix and all developers have to handle it in the code.

Thanks,
Sadashiv.

🇮🇳India sadashiv

Hi,

I found a similar thing reported at https://stackoverflow.com/questions/34678678/failedprecondition-error-wh...

Can you try that solution i.e. use

$client->setConfig('subject', 'you@email.com');

If that solves the problem then report back so that I can think of some solution . I recommend using client_email from the credentials, if that doesn't work then use the account email and update me which one works, or both fail.

Thanks,
Sadashiv.

Production build 0.69.0 2024