function social_content_load in Social Content 7.2
Implements hook_load().
3 calls to social_content_load()
- drush_social_content_import in ./
social_content.drush.inc - Callback function for drush social-content-import command.
- social_content_cron in ./
social_content.module - Implements hook_cron().
- social_content_cronapi in ./
social_content.module - Implements hook_cronapi().
File
- ./
social_content.module, line 75 - Social Content module.
Code
function social_content_load($id) {
$classes = social_content_get_classes();
if (is_string($id) && !empty($classes[$id])) {
return new $classes[$id]();
}
elseif (is_numeric($id)) {
return SocialContent::getObjectFromInstance($classes, $id);
}
}