You are here

function hook_microdata_suggestions_alter in Microdata 7

Alter the suggested microdata terms provided in hook_microdata_suggestions.

Parameters

array $suggestions: The array of suggestions.

See also

hook_microdata_suggestions()

1 invocation of hook_microdata_suggestions_alter()
microdata_form_field_ui_field_edit_form_alter in includes/microdata.form_alter.inc
Implements hook_form_FORM_ID_alter().

File

./microdata.api.php, line 87
Hooks provided by Microdata module.

Code

function hook_microdata_suggestions_alter(&$suggestions) {
  $suggestions['fields']['fivestar']['example.org'] = array(
    '#itemprop' => array(
      'ratingExample',
    ),
    '#itemtype' => array(
      'http://example.org/RatingExample',
    ),
    'average_rating' => array(
      '#itemprop' => array(
        'exampleValue',
      ),
    ),
  );
}