The bible.install just needs some code formatting and layout improvements to be more Drupal coding standard compliant. Some of the other files might need this too, but I'll start here.

ORIGINAL
The bible.install file contains calls to drupal_install_schema() and drupal_uninstall_schema() which causes a fatal error when enabling the module. It doesn't interfere with the running of the module as the schema gets installed regardless, but the install file does need a good cleanup to be more compliant with Drupal standards.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dieuwe’s picture

Status: Active » Needs review
FileSize
7.92 KB

This patch cleans up the entire install file. It removes bible_install() altogether, removes unnecesary parts of bible_uninstall(), and applies proper coding conventions to the arrays in bible_schema().

berenddeboer’s picture

Status: Needs review » Reviewed & tested by the community
dieuwe’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Note that due to discoveries in #2287261: Branch and Release Cleanup This patch will be invalid as these errors were already resolved in some tags not committed to the dev branch.

The coding style changes to bible_schema() will probably still be valid, but I will create a separate patch for that in the future once the referenced issue is resolved.

dieuwe’s picture

Title: Fatal Errors in bible.install » Improve code formatting in bible.install
Issue summary: View changes
Status: Closed (fixed) » Active

Now that that major issues with the development branch have been cleaned up I shall submit another patch to just improve the code layout in the bible.install file to be more Drupal coding standard compliant.

dieuwe’s picture

Status: Active » Needs review
FileSize
13.5 KB

This patch splits all the field definition arrays over different lines to be more readable, fixes indentation, and also adds comments to the two update hooks.

berenddeboer’s picture

Assigned: dieuwe » berenddeboer
Status: Needs review » Fixed

  • berenddeboer committed 08be491 on 7.x-1.x
    Issue #2477093 by dieuwe: Improve code formatting in bible.install
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.