diff --git a/web/modules/custom/publish_label_change/publish_label_change.info.yml b/web/modules/custom/publish_label_change/publish_label_change.info.yml new file mode 100644 index 0000000000000000000000000000000000000000..44b53aa6f96d453e30b1dfd3049073f05bbc9eda --- /dev/null +++ b/web/modules/custom/publish_label_change/publish_label_change.info.yml @@ -0,0 +1,7 @@ +name: Publish Label Change +description: 'Automatically changes the Published label for a node so that users will not mistake node publish checkbox with paragraph publish checkbox' +core: 8.x +type: module +package: ASC Tech +dependencies: + - drupal:node diff --git a/web/modules/custom/publish_label_change/publish_label_change.module b/web/modules/custom/publish_label_change/publish_label_change.module new file mode 100644 index 0000000000000000000000000000000000000000..aff26a796fec75fb46f62371b89148205ded61c2 --- /dev/null +++ b/web/modules/custom/publish_label_change/publish_label_change.module @@ -0,0 +1,4 @@ +<?php +function publish_label_change_form_alter(&$form, &$form_state, $form_id) { + $form['status']['widget']['value']['#title'] = t('Page Published'); +}