function twitter_block_content_type_admin_info in Twitter Block 7
Same name and namespace in other branches
- 6 plugins/content_types/twitter_block.inc \twitter_block_content_type_admin_info()
Panels admin info function. Returns the info that you see in panels admin interface once you have placed the block in a pane.
File
- plugins/
content_types/ twitter_block.inc, line 86 - Ctools content type plugin that shows a Twitter Block.
Code
function twitter_block_content_type_admin_info($subtype, $conf) {
$strings = array(
'searchHashtag' => t('Tweets mentioning #hashtag or search string'),
'getTweetsFrom' => t('Tweets sent from the Twitter user'),
'getReplies' => t('Replies to the Twitter user'),
'getMentions' => t('Tweets mentioning the Twitter user'),
);
$block = twitter_block_content_type_render($subtype, $conf, array());
$block->title = $strings[$conf['search_type']] . ' <strong>(' . $conf['search_string'] . ')</strong>';
return $block;
}