Problem/Motivation

To avoid installing module without libraries I suggest adding hook_requirements() in the .install file. This will allow being sure that module will be installed only in a case when library added. Without the library, this module does not make sense to install.

Proposed resolution

Add hook_requirements().

Remaining tasks

Review patch.

User interface changes

None.

API changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ddrozdik created an issue. See original summary.

ddrozdik’s picture

Status: Active » Needs review
FileSize
985 bytes

Here is a patch.

hamrant’s picture

Looks good, one minor fix:

+++ b/colorbutton.install
@@ -0,0 +1,29 @@
+       Download the plugin from http://ckeditor.com/addon/colorbutton at least ¶

Please delete whitespace on 23 line.

ddrozdik’s picture

FileSize
984 bytes

Here is updated patch with removed whitespace on 23 line.

hamrant’s picture

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

Status: Reviewed & tested by the community » Needs review
FileSize
1003 bytes

I found an issue with the latest patсh. Here is update version.

  • ddrozdik committed d5eb605 on 8.x-1.x
    Issue #2881819 by ddrozdik: Check for missing library in...
ddrozdik’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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