You are here

function hook_social_content_class_info_alter in Social Content 7.2

Alter available social content classes.

Useful for overriding extending class implementation with your own.

Parameters

array $classes: Array of social content classes, define in hook_social_content_class_info.

1 invocation of hook_social_content_class_info_alter()
social_content_get_classes in ./social_content.module
Get all classes which integrating modules declare.

File

./social_content.api.php, line 37
Hooks provided by Social Content module

Code

function hook_social_content_class_info_alter(&$classes) {
  if (isset($classes['twitter'])) {

    // We only want tweets with images.
    $classes['twitter'] = 'SocialContentTwitterSH';
  }
}