Issue #2886150 by samiahmedsiddiqui: Fixed Coding Standard issues

This commit is contained in:
samiahmedsiddiqui 2017-08-12 02:17:22 +05:00
parent 8ab394f0e6
commit c0a641bae3
3 changed files with 15 additions and 13 deletions

View File

@ -1,5 +1,6 @@
HFS (Header Footer Scripts) module for Drupal 7.x.
This module allows you to add style and scripts in different region of the page from the front-end. You don't need to open any file for this purpose.
This module allows you to add style and scripts in different region of the page
from the front-end. You don't need to open any file for this purpose.
INSTALLATION INSTRUCTIONS
-------------------------
@ -8,11 +9,12 @@ INSTALLATION INSTRUCTIONS
2. Login as site administrator.
3. Enable the HFS (Header Footer Scripts) module on the Administer -> Modules
page.
4. Add styles and scripts in settings on the Administer -> Configuration -> Development ->
HFS (Header Footer Scripts) Page.
4. Add styles and scripts in settings on the Administer -> Configuration ->
Development -> HFS (Header Footer Scripts) Page.
5. Enjoy.
NOTES
-----
This module adds the styles and scripts on all over the site. There are 3 setting pages.
This module adds the styles and scripts on all over the site. There are 3
setting pages.
These setting pages are allow you add the scripts in the desired region.

View File

@ -10,7 +10,7 @@
/**
* Administrative settings.
*
* @return
* @return array
* Add styles and scripts in header.
*/
function hfs_header_settings_form($form, &$form_state) {
@ -47,7 +47,7 @@ function hfs_header_settings_form($form, &$form_state) {
* Submit handler().
*/
function hfs_header_settings_form_submit($form, &$form_state) {
$header['styles'] = $form_state['values']['styles'];
$header['styles'] = $form_state['values']['styles'];
$header['scripts'] = $form_state['values']['scripts'];
serialize($header);
variable_set('hfs_header_scripts', $header);
@ -56,7 +56,7 @@ function hfs_header_settings_form_submit($form, &$form_state) {
/**
* Administrative settings.
*
* @return
* @return array
* Add styles and scripts at the start of the body tag.
*/
function hfs_body_settings_form($form, &$form_state) {
@ -102,7 +102,7 @@ function hfs_body_settings_form_submit($form, &$form_state) {
/**
* Administrative settings.
*
* @return
* @return array
* Add styles and scripts in footer (before closing the body tag).
*/
function hfs_footer_settings_form($form, &$form_state) {
@ -139,7 +139,7 @@ function hfs_footer_settings_form($form, &$form_state) {
* Submit handler().
*/
function hfs_footer_settings_form_submit($form, &$form_state) {
$footer['styles'] = $form_state['values']['styles'];
$footer['styles'] = $form_state['values']['styles'];
$footer['scripts'] = $form_state['values']['scripts'];
serialize($footer);
variable_set('hfs_footer_scripts', $footer);

View File

@ -65,7 +65,7 @@ function hfs_permission() {
$permissions['administer hfs module'] = array(
'title' => t('Add Scripts all over the site'),
'restrict access' => TRUE,
'description' => t('Users who have this permission can add and remove the scripts from the site.')
'description' => t('Users who have this permission can add and remove the scripts from the site.'),
);
return $permissions;