function yoast_seo_configuration_load in Real-time SEO for Drupal 7
Load an entity's SEO info.
Parameters
string $entity_type: The entity type to load.
int $entity_id: The ID of the entity to load.
Return value
array An array of SEO info data keyed by revision ID and language.
File
- ./
yoast_seo.module, line 497 - Primary hook implementations for Yoast SEO for Drupal module.
Code
function yoast_seo_configuration_load($entity_type, $entity_id) {
$seo_info = yoast_seo_configuration_load_multiple($entity_type, array(
$entity_id,
));
return !empty($seo_info) ? reset($seo_info) : array();
}