You are here

function drupagram_filter_info in Drupagram 7

Implements hook_filter_info().

File

./drupagram.module, line 199
Provides API integration with the Instagram microblogging service.

Code

function drupagram_filter_info() {
  $filters['drupagram_username'] = array(
    'title' => t('Instagram @username converter'),
    'description' => t('Converts Instagram-style @usernames into links to Instagram account pages.'),
    'process callback' => '_drupagram_filter_username',
    'tips callback' => '_drupagram_filter_tip_username',
  );
  $filters['drupagram_hashtag'] = array(
    'title' => t('Instagram #hashtag converter'),
    'description' => t('Converts Instagram-style #hashtags into links to hashtags.org.'),
    'process callback' => '_drupagram_filter_hashtag',
    'tips callback' => '_drupagram_filter_tip_hashtag',
  );
  return $filters;
}