You are here

function twitter_post_content_extra_fields in Twitter 6.3

Same name and namespace in other branches
  1. 6.5 twitter_post/twitter_post.module \twitter_post_content_extra_fields()
  2. 6.4 twitter_post/twitter_post.module \twitter_post_content_extra_fields()

Implementation of hook_content_extra_fields().

File

twitter_post/twitter_post.module, line 145
Main hooks for twitter post module

Code

function twitter_post_content_extra_fields($type) {
  $allowed_types = variable_get('twitter_types', array(
    'story' => 'story',
    'blog' => 'blog',
  ));
  if (empty($allowed_types[$type])) {
    return;
  }
  $extras['twitter'] = array(
    'label' => t('Twitter'),
    'description' => t('Form to send new content to twitter'),
    'weight' => 100,
  );
  return $extras;
}