function ml_flickr_search in Media Library 6
Function that searches flickr TODO: Add arguments
1 call to ml_flickr_search()
- ml_flickr_flickr_options_form in ml_image/
ml_flickr/ ml_flickr.module - Image selection stage
File
- ml_image/
ml_flickr/ ml_flickr.module, line 251 - This module aims to provide some basic sources for images to use with Media Library, such as navigating on existing files and uploading new images
Code
function ml_flickr_search() {
// Get variables
$limit = variable_get('media_library_limit', MEDIA_LIBRARY_LIMIT);
$page = isset($_GET['page']) ? $_GET['page'] : 0;
// Call flickr search
$flickr_obj = ml_flickr_get_obj();
return $flickr_obj
->photos_search(array(
'tags' => 'cow',
'tag_mode' => 'all',
//'license' => 'something',
'media' => 'photos',
'per_page' => $limit,
'page' => $page + 1,
));
}