$blocks[2]['info']=t("User (node author) random Flickr photos tagged as term from node");
$blocks[2]['info']=t("User (node author) Flickr photos tagged as term from node");
// Site wide blocks.
$blocks[3]['info']=t('Recent photos from a Flickr user tagged as term from node');
$blocks[3]['info']=t('Photos from a Flickr user tagged as term from node');
$blocks[4]['info']=t('Recent photosets from a Flickr user');
$blocks[5]['info']=t('Random photos from a Flickr user tagged as term from node');
$blocks[6]['info']=t('Recent photos from a Flickr group tagged as term from node');
$blocks[5]['info']=t('Photos from a Flickr user tagged as term from node');
$blocks[6]['info']=t('Photos from a Flickr group tagged as term from node');
// Photoset blocks.
$blocks[7]['info']=t('Random photos tagged as term from node from a Flickr photoset');
$blocks[8]['info']=t('Recent photos tagged as term from node from a Flickr photoset');
$blocks[7]['info']=t('Photos tagged as term from node from a Flickr photoset');
$blocks[8]['info']=t('Photos tagged as term from node from a Flickr photoset');
// Returns a list of favorite public photos for the given user.
$blocks[9]['info']=t("Recent favorite public photos from a Flickr user tagged as term from node");
$blocks[9]['info']=t("Favorite public photos from a Flickr user tagged as term from node");
$blocks[10]['info']=t("Random photos from a Flickr group tagged as term from node");
$blocks[11]['info']=t("Random photos with a specific tags from a Flickr user");
$blocks[12]['info']=t("Random favorite public photos from a Flickr user tagged as term from node");
$blocks[10]['info']=t("Photos from a Flickr group tagged as term from node");
$blocks[11]['info']=t("Photos with specific tags from a Flickr user");
$blocks[12]['info']=t("Favorite public photos from a Flickr user tagged as term from node");
$blocks[13]['info']=t("User (node author) recent Flickr favorites tagged as term from node");
$blocks[14]['info']=t("User (node author) random Flickr favorites tagged as term from node");
$blocks[13]['info']=t("User (node author) Flickr favorites tagged as term from node");
$blocks[14]['info']=t("User (node author) Flickr favorites tagged as term from node");
for($i=0;$i<15;$i++){
$blocks[$i]['cache']=DRUPAL_CACHE_GLOBAL;
@@ -83,6 +83,9 @@ function flickr_block_configure($delta = '') {
if(!isset($settings['photoset_id'])){
$settings['photoset_id']='';
}
if(!isset($settings['sort'])){
$settings['sort']='random';
}
if(!isset($settings['media'])){
$settings['media']='photos';
}
@@ -162,6 +165,17 @@ function flickr_block_configure($delta = '') {
'#default_value'=>$settings['size'],
'#description'=>t("Select the size of photos you'd like to display in the block."),
);
$form["flickr_block_{$delta}_sort"]=array(
'#type'=>'select',
'#options'=>array(
'random'=>t('Random'),
'recent'=>t('Recent (newest first)'),
'views'=>t('Number of photo views on Flickr (popularity)'),
),
'#title'=>t('Sort order'),
'#default_value'=>$settings['sort'],
'#description'=>t("Gets ignored for slideshows (always 'recent')."),
);
$form["flickr_block_{$delta}_media"]=array(
'#type'=>'select',
'#options'=>array(
@@ -223,7 +237,7 @@ function flickr_block_configure($delta = '') {
);
// A note for dynamic user blocks.
$form['flickr_block_note']=array(
'#markup'=>t("<h3>NOTE</h3><strong>The block visibility setting for 'user' blocks are not only restricted by the user in the block configuration but also by the Flickr Block module.</strong> The block only gets displayed when the first argument of the path is 'user' or 'node' and a specific uid is available.<br /><br />Below you can change the block settings to exclude 'node/*' pages or show them only on 'user/*' pages. You can do it also the other way around to show a block only on a node page. Fine-grain it even more by selecting only a certain content type you want to show them on, for example blog posts."),
'#markup'=>t("<h3>NOTE</h3><strong>The block visibility setting for 'user' (node author) blocks are not only restricted in the block configuration but also by the Flickr Block module.</strong> The block only gets displayed on user and node pages. Below you can change the block settings to exclude 'user/*' pages or show them only on 'node/*' pages or the other way around. Fine-grain even more by selecting a content type, for example blog posts."),
'#weight'=>10,
);
@@ -234,6 +248,7 @@ function flickr_block_configure($delta = '') {
unset($form["flickr_block_{$delta}_user_id"]);
unset($form["flickr_block_{$delta}_group_id"]);
unset($form["flickr_block_{$delta}_photoset"]);
unset($form["flickr_block_{$delta}_sort"]);
if(module_exists('taxonomy')){
unset($form["flickr_block_{$delta}_vocab"]);
}
@@ -285,6 +300,7 @@ function flickr_block_configure($delta = '') {