You are here

function yoast_seo_form_alter in Real-time SEO for Drupal 7

Implements hook_form_alter().

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

File

./yoast_seo.module, line 438
Primary hook implementations for Yoast SEO for Drupal module.

Code

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