You are here

function clientside_validation_enable in Clientside Validation 7

Same name and namespace in other branches
  1. 6 clientside_validation.install \clientside_validation_enable()
  2. 7.2 clientside_validation.install \clientside_validation_enable()

Implements hook_enable().

File

./clientside_validation.install, line 10

Code

function clientside_validation_enable() {

  //support for module like e.g. select_or_other
  db_update('system')
    ->fields(array(
    'weight' => 5,
  ))
    ->condition('type', 'module')
    ->condition('name', 'clientside_validation')
    ->execute();

  // @TODO: exclude admin-block-theme-form by default
}