Created
November 23, 2012 21:23
-
-
Save leewillis77/4137379 to your computer and use it in GitHub Desktop.
Revised Drupal Sirportly module patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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