summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStein Magne Bjorklund2017-06-16 14:43:18 (GMT)
committerStein Magne Bjorklund2017-06-16 14:43:18 (GMT)
commit3824a02bda5bc50277b17bf789c9a2f89938e358 (patch)
treeac1b9ace9953b806b302d64bef0b111dd9e1c65d
parentf4836b4fafc7262fd77db8f4c701a6e516d787b6 (diff)
Remove unused option parameter from hook_media_parse().
Not used, empty and undocumented.
-rw-r--r--includes/media_flickr.utilities.inc3
-rw-r--r--media_flickr.module4
2 files changed, 3 insertions, 4 deletions
diff --git a/includes/media_flickr.utilities.inc b/includes/media_flickr.utilities.inc
index 4cd382c..f16fb5b 100644
--- a/includes/media_flickr.utilities.inc
+++ b/includes/media_flickr.utilities.inc
@@ -243,12 +243,11 @@ function _media_flickr_build_uri($parts) {
*
* @param $url
* The original URL or embed code to parse.
- * @param array $options
*
* @return string
* The unique URI for the file, based on its stream wrapper, or NULL.
*/
-function _media_flickr_media_parse($url, $options = array()) {
+function _media_flickr_media_parse($url) {
// The following are single images.
$patterns = array(
'@flickr\.com/photos/([0-9A-Za-z\@\&\$_-]+)/([0-9]+)/in/photostream@i',
diff --git a/media_flickr.module b/media_flickr.module
index f0a002e..95340cb 100644
--- a/media_flickr.module
+++ b/media_flickr.module
@@ -116,9 +116,9 @@ function media_flickr_theme($existing, $type, $theme, $path) {
* @return string
* The unique URI based on its stream wrapper, or NULL.
*/
-function media_flickr_media_parse($url, $options = array()) {
+function media_flickr_media_parse($url) {
module_load_include('inc', 'media_flickr', 'includes/media_flickr.utilities');
- return _media_flickr_media_parse($url, $options);
+ return _media_flickr_media_parse($url);
}
/**