diff --git a/README.txt b/README.txt index 55ade01..33e3375 100644 --- a/README.txt +++ b/README.txt @@ -9,7 +9,8 @@ CONTENTS OF THIS FILE ABOUT CUSTOM BODY CLASS --------------------- -Custom body class module is used to add custom class to tag specific to node. +Custom body class module is used to add custom class to tag specific to +node. REQUIREMENTS @@ -23,12 +24,12 @@ INSTALLATION CONFIGURATION ------------- -This module adds a fieldset named "Custom Body Class Settings" in node type form, +This module adds a fieldset named "Custom Body Class Settings" in node type +form, For eg: admin/structure/types/manage/article for article content type. There are two fields in a fieldset. 1: A textbox to add custom body class. Add multiple classes separated by space. 2: A checkbox,which when enabled add a node type as a class in tag. - For eg: If a node type is article, then 'article' get added as a class in tag of the page. - - + For eg: If a node type is article, then 'article' get added as a class in + tag of the page. diff --git a/custom_body_class.info.yml b/custom_body_class.info.yml index 3048204..85b48ca 100644 --- a/custom_body_class.info.yml +++ b/custom_body_class.info.yml @@ -1,9 +1,4 @@ type: module name : Custom body class description : Adds custom class/es -# core : 8.x - -# Information added by Drupal.org packaging script on 2017-12-29 -version: '8.x-1.0' -core: '8.x' -project: 'custom_body_class' +core : 8.x diff --git a/custom_body_class.module b/custom_body_class.module index e0446a9..61d8daa 100644 --- a/custom_body_class.module +++ b/custom_body_class.module @@ -10,7 +10,6 @@ use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Field\BaseFieldDefinition; -use Drupal\Core\Form\FormStateInterface; /** * Implements hook_form_FORM_ID_alter().