You are here

function _filter_metatag in GatherContent 8

Same name and namespace in other branches
  1. 7.3 forms/gathercontent.mapping-edit.inc \_filter_metatag()

Return only supported metatag fields.

Parameters

object $gc_field: Object of field from GatherContent.

Return value

array Array of supported metatag fields.

1 call to _filter_metatag()
gc_mapping_edit_form in forms/gc.mapping-edit.inc
Edit mapping form.

File

forms/gc.mapping-edit.inc, line 601
Multistep mapping form.

Code

function _filter_metatag($gc_field) {
  if ($gc_field->type === 'text' && $gc_field->plain_text) {
    return array(
      'title' => t('Title'),
      'description' => t('Description'),
      'abstract' => t('Abstract'),
      'keywords' => t('Keywords'),
    );
  }
  else {
    return array();
  }
}