Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. function atlas_common_form_alter(&$form, DrupalCoreFormFormStateInterface $form_state, $form_id) {
  2. Drupal::logger('my_module')->notice('testing');
  3.  
  4. if ($form_id == 'taxonomy_term_department_form'){
  5.  
  6. }
  7. }
  8.  
  9. function alter_appointment_message_node_insert($node) {
  10. if($node->type == "appointment_request") {
  11. drupal_get_messages('status'); // Flush default simplenews status message
  12. drupal_set_message(t('An appointment has been requested'), 'status');
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement