function social_content_get_types in Social Content 7
Gets all social content types.
Invokes hook_social_content_info and hook_social_content_info_alter.
5 calls to social_content_get_types()
- social_content_cron in ./
social_content.module - Implements hook_cron().
- social_content_cronapi in ./
social_content.module - Implements hook_cronapi().
- social_content_overview_types in ./
social_content.admin.inc - Menu callback for admin/config/services/social-content.
- social_content_type_load in ./
social_content.module - Menu argument loader: loads a social_content_type type by string.
- social_content_variable_info in ./
social_content.variable.inc - Implements hook_variable_info().
File
- ./
social_content.module, line 92 - Social Content module.
Code
function social_content_get_types() {
$social_content_types =& drupal_static(__FUNCTION__);
if (!isset($social_content_types)) {
$social_content_types = module_invoke_all('social_content_info');
foreach ($social_content_types as $name => $type) {
$social_content_types[$name]['name'] = $name;
}
drupal_alter('social_content_info', $social_content_types);
}
return $social_content_types;
}