Loading bookable_calendar.module +40 −12 Original line number Diff line number Diff line Loading @@ -235,30 +235,58 @@ function bookable_calendar_token_info() { 'name' => t('Bookable Calendar'), 'description' => t('Tokens associated with Bookable Calendars') ]; $info['tokens']['bookable_calendar']['title'][] = 'The title of the Calendar'; $info['tokens']['bookable_calendar']['description'][] = 'The description of Calendar'; $info['tokens']['bookable_calendar']['title'] = [ 'name' => t('The title of the Calendar'), 'description' => t('The title of the Calendar') ]; $info['types']['booking_contact'] = [ 'name' => t('Booking Contact'), 'description' => t('Tokens associated with Booking Contact') ]; $info['tokens']['booking_contact']['url'][] = 'The URL for the Booking Contact'; $info['tokens']['booking_contact']['email'][] = 'The Email for the Booking Contact'; $info['tokens']['booking_contact']['party_size'][] = 'The Party Size for the Booking Contact'; $info['tokens']['booking_contact']['values'][] = 'The RAW Booking Contact Entity'; $info['tokens']['booking_contact']['hashed_login_url'][] = 'A public login path to let the user edit their booking without being a Drupal user'; $info['tokens']['booking_contact']['calendar_title'][] = 'The Calendar Title for this contact'; $info['tokens']['booking_contact']['url'] = [ 'name' => t('The URL for the Booking Contact'), 'description' => t('The URL for the Booking Contact') ]; $info['tokens']['booking_contact']['email'] = [ 'name' => t('The Email for the Booking Contact'), 'description' => t('The Email for the Booking Contact') ]; $info['tokens']['booking_contact']['party_size'] = [ 'name' => t('The Party Size for the Booking Contact'), 'description' => t('The Party Size for the Booking Contact') ]; $info['tokens']['booking_contact']['values'] = [ 'name' => t('The RAW Booking Contact Entity'), 'description' => t('The RAW Booking Contact Entity') ]; $info['tokens']['booking_contact']['hashed_login_url'] = [ 'name' => t('A public login path to let the user edit their booking without being a Drupal user'), 'description' => t('A public login path to let the user edit their booking without being a Drupal user') ]; $info['tokens']['booking_contact']['calendar_title'] = [ 'name' => t('The Calendar Title for this contact'), 'description' => t('The Calendar Title for this contact') ]; $info['types']['booking'] = [ 'name' => t('Booking'), 'description' => t('Tokens associated with Bookings') ]; $info['tokens']['booking']['date'][] = 'The date of a Booking'; $info['tokens']['booking']['created'][] = 'The time a Booking was created'; $info['tokens']['booking']['values'][] = 'The RAW Booking Entity'; $info['tokens']['booking']['date'] = [ 'name' => t('The date of a Booking'), 'description' => t('The date of a Booking') ]; $info['tokens']['booking']['created'] = [ 'name' => t('The time a Booking was created'), 'description' => t('The time a Booking was created') ]; $info['tokens']['booking']['values'] = [ 'name' => t('The RAW Booking Entity'), 'description' => t('The RAW Booking Entity') ]; return $info; } function bookable_calendar_tokens($type, $tokens, array $data, array $options, BubbleableMetadata $bubbleable_metadata) { Loading Loading
bookable_calendar.module +40 −12 Original line number Diff line number Diff line Loading @@ -235,30 +235,58 @@ function bookable_calendar_token_info() { 'name' => t('Bookable Calendar'), 'description' => t('Tokens associated with Bookable Calendars') ]; $info['tokens']['bookable_calendar']['title'][] = 'The title of the Calendar'; $info['tokens']['bookable_calendar']['description'][] = 'The description of Calendar'; $info['tokens']['bookable_calendar']['title'] = [ 'name' => t('The title of the Calendar'), 'description' => t('The title of the Calendar') ]; $info['types']['booking_contact'] = [ 'name' => t('Booking Contact'), 'description' => t('Tokens associated with Booking Contact') ]; $info['tokens']['booking_contact']['url'][] = 'The URL for the Booking Contact'; $info['tokens']['booking_contact']['email'][] = 'The Email for the Booking Contact'; $info['tokens']['booking_contact']['party_size'][] = 'The Party Size for the Booking Contact'; $info['tokens']['booking_contact']['values'][] = 'The RAW Booking Contact Entity'; $info['tokens']['booking_contact']['hashed_login_url'][] = 'A public login path to let the user edit their booking without being a Drupal user'; $info['tokens']['booking_contact']['calendar_title'][] = 'The Calendar Title for this contact'; $info['tokens']['booking_contact']['url'] = [ 'name' => t('The URL for the Booking Contact'), 'description' => t('The URL for the Booking Contact') ]; $info['tokens']['booking_contact']['email'] = [ 'name' => t('The Email for the Booking Contact'), 'description' => t('The Email for the Booking Contact') ]; $info['tokens']['booking_contact']['party_size'] = [ 'name' => t('The Party Size for the Booking Contact'), 'description' => t('The Party Size for the Booking Contact') ]; $info['tokens']['booking_contact']['values'] = [ 'name' => t('The RAW Booking Contact Entity'), 'description' => t('The RAW Booking Contact Entity') ]; $info['tokens']['booking_contact']['hashed_login_url'] = [ 'name' => t('A public login path to let the user edit their booking without being a Drupal user'), 'description' => t('A public login path to let the user edit their booking without being a Drupal user') ]; $info['tokens']['booking_contact']['calendar_title'] = [ 'name' => t('The Calendar Title for this contact'), 'description' => t('The Calendar Title for this contact') ]; $info['types']['booking'] = [ 'name' => t('Booking'), 'description' => t('Tokens associated with Bookings') ]; $info['tokens']['booking']['date'][] = 'The date of a Booking'; $info['tokens']['booking']['created'][] = 'The time a Booking was created'; $info['tokens']['booking']['values'][] = 'The RAW Booking Entity'; $info['tokens']['booking']['date'] = [ 'name' => t('The date of a Booking'), 'description' => t('The date of a Booking') ]; $info['tokens']['booking']['created'] = [ 'name' => t('The time a Booking was created'), 'description' => t('The time a Booking was created') ]; $info['tokens']['booking']['values'] = [ 'name' => t('The RAW Booking Entity'), 'description' => t('The RAW Booking Entity') ]; return $info; } function bookable_calendar_tokens($type, $tokens, array $data, array $options, BubbleableMetadata $bubbleable_metadata) { Loading