You are here

function metatag_form_alter in Metatag 7

Implements hook_form_alter().

@todo Remove this when https://www.drupal.org/node/1284642 is fixed in core.

File

./metatag.module, line 2170
Primary hook implementations for Metatag.

Code

function metatag_form_alter(&$form, $form_state, $form_id) {
  if (!empty($form['#metatags']) && !isset($form['metatags'])) {
    extract($form['#metatags']);
    metatag_metatags_form($form, $instance, $metatags, $options);
    unset($form['#metatags']);
  }
}