You are here

schema_service.metatag.inc in Schema.org Metatag 7

Metatag integration for the schema_service module.

File

schema_service/schema_service.metatag.inc
View source
<?php

/**
 * @file
 * Metatag integration for the schema_service module.
 */

/**
 * Implements hook_metatag_info().
 */
function schema_service_metatag_info() {
  $info['groups']['schema_service'] = array(
    'label' => t('Schema.org: Service'),
    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', array(
      '!url' => 'http://schema.org/Service',
    )),
    'form' => array(
      '#weight' => 10,
    ),
  );
  $weight = 10;

  // Basic tags.
  $defaults = array(
    'class' => 'SchemaNameBase',
    'group' => 'schema_service',
    'form' => array(
      '#type' => 'textfield',
    ),
  );
  $info['tags']['schema_service.@type'] = array(
    'class' => 'SchemaServiceType',
    'label' => t('@type'),
    'description' => t('REQUIRED. The type of service (fixed by standard).'),
    'weight' => ++$weight,
  ) + $defaults;
  $info['tags']['schema_service.name'] = array(
    'label' => t('name'),
    'description' => t('Name of the service.'),
    'weight' => ++$weight,
  ) + $defaults;
  $info['tags']['schema_service.description'] = array(
    'label' => t('description'),
    'description' => t('A description of the item.'),
    'weight' => ++$weight,
  ) + $defaults;
  $info['tags']['schema_service.image'] = array(
    'class' => 'SchemaImageBase',
    'label' => t('image'),
    'description' => t('The primary image for this item.'),
    'image' => TRUE,
    'url' => TRUE,
    'multiple' => TRUE,
    'weight' => ++$weight,
  ) + $defaults;
  $info['tags']['schema_service.offers'] = array(
    'class' => 'SchemaOfferBase',
    'label' => t('offers'),
    'description' => t('Offers associated with the service.'),
    'multiple' => TRUE,
    'weight' => ++$weight,
  ) + $defaults;
  $info['tags']['schema_service.aggregateRating'] = array(
    'class' => 'SchemaRatingBase',
    'label' => t('aggregateRating'),
    'description' => '',
    'multiple' => TRUE,
    'weight' => ++$weight,
  ) + $defaults;
  $info['tags']['schema_service.review'] = array(
    'class' => 'SchemaReviewBase',
    'label' => t('review'),
    'description' => '',
    'multiple' => TRUE,
    'weight' => ++$weight,
  ) + $defaults;
  return $info;
}

Functions