Skip to content

Instantly share code, notes, and snippets.

@leewillis77
Created November 23, 2012 21:10
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/4137339 to your computer and use it in GitHub Desktop.
Save leewillis77/4137339 to your computer and use it in GitHub Desktop.
Drupal Sirportly Integration patch
diff --git a/sirportly.module b/sirportly.module
index 6872dcf..2fbe075 100644
--- a/sirportly.module
+++ b/sirportly.module
@@ -33,6 +33,21 @@ 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' => 'unversioned'
+ );
+
+ 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