Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function atlas_common_form_alter(&$form, DrupalCoreFormFormStateInterface $form_state, $form_id) {
- Drupal::logger('my_module')->notice('testing');
- if ($form_id == 'taxonomy_term_department_form'){
- }
- }
- function alter_appointment_message_node_insert($node) {
- if($node->type == "appointment_request") {
- drupal_get_messages('status'); // Flush default simplenews status message
- drupal_set_message(t('An appointment has been requested'), 'status');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement