You are here

function encryptfapi_module_implements_alter in Encrypt Form API 7.2

Implements hook_module_implements_alter().

This moves the hook_form_alter() implementation to the bottom of the list so that other modules can alter forms first and the added validation function will be triggered last.

File

./encryptfapi.module, line 16
Main module file for Encrypt Form API.

Code

function encryptfapi_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'form_alter' && isset($implementations['encryptfapi'])) {
    $group = $implementations['encryptfapi'];
    unset($implementations['encryptfapi']);
    $implementations = array_merge($implementations, array(
      'encryptfapi' => $group,
    ));
  }
}