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
name = Bean Tweets | |
description = Provides a block for a twitter user's tweets | |
core = 7.x | |
dependencies[] = bean | |
package = Bean | |
files[] = "plugins/bean/bean_tweets.tweet_block.inc" | |
configure = admin/config/system/bean_tweets |
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
<?php | |
/** | |
* @file | |
* Bean plugin for showing tweets for a specified twitter user | |
*/ | |
/** | |
* Implements hook_bean_types_api_info(). | |
*/ | |
function bean_tweets_bean_types_api_info() { |
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
<?php | |
/** | |
* @file | |
* Tweet block bean plugin. | |
*/ | |
/** | |
* Require the twitteroauth library | |
*/ | |
require_once(drupal_get_path('module','bean_tweets') . '/libraries/twitteroauth/twitteroauth.php'); |
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
$conf['twitter_consumer_key'] = [consumer_key_here]; | |
$conf['twitter_consumer_secret'] = [consumer_secret_here]; | |
$conf['twitter_access_token'] = [access_token_here]; | |
$conf['twitter_token_secret'] = [token_secret_here]; |
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
<?php | |
/** | |
* @file | |
* Bean admin page for setting up oAuth | |
*/ | |
/** | |
* Admin form. | |
*/ | |
function bean_tweets_admin($form, &$form_state) { |
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
<?php | |
/** | |
* Implements hook_uninstall(). | |
*/ | |
function bean_tweets_uninstall() { | |
variable_del('twitter_consumer_key'); | |
variable_del('twitter_consumer_secret'); | |
variable_del('twitter_access_token'); | |
variable_del('twitter_token_secret'); |
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
<?php | |
/** | |
* Implements hook_menu(). | |
*/ | |
function bean_tweets_menu() { | |
$items = array(); | |
$items['admin/config/system/bean_tweets'] = array( | |
'title' => t('Bean Tweets OAuth'), | |
'description' => t('Configure OAuth for Bean Tweets module'), | |
'page callback' => 'drupal_get_form', |
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
<?php | |
/** | |
* @file | |
* Tweet block bean plugin. | |
*/ | |
/** | |
* Require the twitteroauth library | |
*/ | |
require_once(drupal_get_path('module','bean_tweets') . '/libraries/twitteroauth/twitteroauth.php'); |
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
<?php | |
/** | |
* @file | |
* Tweet block bean plugin. | |
*/ | |
/** | |
* Require the twitteroauth library | |
*/ | |
require_once(drupal_get_path('module','bean_tweets') . '/libraries/twitteroauth/twitteroauth.php'); |
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
h1 { | |
font-size: 2em; | |
font-weight: normal; | |
&.yell { | |
text-decoration: uppercase; | |
font-weight: bold; | |
} | |
} |
OlderNewer