Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leewillis77/4137379 to your computer and use it in GitHub Desktop.
Save leewillis77/4137379 to your computer and use it in GitHub Desktop.
Revised Drupal Sirportly module patch
diff --git a/sirportly.module b/sirportly.module
index 6872dcf..4463647 100644
--- a/sirportly.module
+++ b/sirportly.module
@@ -33,6 +33,24 @@ function sirportly_init() {
}
/**
+ * Implements hook_libraries_info().
+ */
+function sirportly_libraries_info() {
+ $libraries['sirportly'] = array(
+ 'name'=>'Sirportly API',
+ 'vendor_url' => 'https://github.com/sirportly/php-library',
+ 'download_url' => 'https://github.com/sirportly/php-library',
+ 'files' => array ( 'php' => array ('class.php') ),
+ 'version arguments' => array(
+ 'file' => 'class.php',
+ 'pattern' => '@version\s+([0-9a-zA-Z\.-]+)@',
+ ),
+ );
+
+ return $libraries;
+}
+
+/**
* Parses markdown by using the GitHub API.
*
* @param string $text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment