You are here

function hook_social_content_class_info in Social Content 7.2

Define social content classes.

This hook enables modules to register their own social content classes which instances can be created from.

All social content imports belong to an instance and that instance is from a class which is defined by this hook. You classes should extend the abstract SocialContent class. Refer to the class for documentation.

$return $info An array of social content classes, in machine_name => class format. Machine name must be unique and not defined anywhere else. To override a specific class use hook_social_content_class_info_alter.

11 functions implement hook_social_content_class_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

social_content_facebook_social_content_class_info in modules/facebook/social_content_facebook.module
Implements hook_social_content_class_info().
social_content_flickr_social_content_class_info in modules/flickr/social_content_flickr.module
Implements hook_social_content_class_info().
social_content_instagram_social_content_class_info in modules/instagram/social_content_instagram.module
Implements hook_social_content_class_info().
social_content_linkedin_social_content_class_info in modules/linkedin/social_content_linkedin.module
Implements hook_social_content_class_info().
social_content_picasa_social_content_class_info in modules/picasa/social_content_picasa.module
Implements hook_social_content_class_info().

... See full list

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

File

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

Code

function hook_social_content_class_info() {
  return array(
    'twitter' => 'SocialContentTwitter',
  );
}