function social_content_type_load in Social Content 7
Menu argument loader: loads a social_content_type type by string.
Parameters
string $name: The machine-readable name of a social_content_type to load.
Return value
object|FALSE A node type object or FALSE if $name does not exist.
File
- ./
social_content.module, line 50 - Social Content module.
Code
function social_content_type_load($name) {
$types = social_content_get_types();
if (isset($types[$name])) {
return $types[$name];
}
else {
return FALSE;
}
}