By quantum3k on
Using module Smart Date on Drupal 9. And required programmatically add value to node with recurring rule (like Repeats every 1 year on xxxx-xx-xx). For this action also needed create item in Rule table... But I understand, how this do... It seems like the smartdate module itself should make an entry in this additional table.
I used like this operation:
$node->set('field_date', $results['kal_tahtpaevad_kuup']);field_data - its smartdate field, but how add field value with complete data (repeats every, until and etc.)
$results['kal_tahtpaevad_kuup'] - its my date... also needed add yearly repeat rule?
Any ideas?
Comments
Hi quantum3k, have you found
Hi quantum3k, have you found a solution ?
Thanks
I faced same issue, I was
I faced same issue, I was able to work around by adding form_state to add the smartDate value
here is my code
you can change the $schedule array to meet your recurring rule