You are here

function mobile_number_install in Mobile Number 8

Same name and namespace in other branches
  1. 7 mobile_number.install \mobile_number_install()
  2. 2.0.x mobile_number.install \mobile_number_install()

Implements hook_install().

File

./mobile_number.install, line 49
Install, update and uninstall functions for the systementity_configfield module.

Code

function mobile_number_install() {
  \Drupal::configFactory()
    ->getEditable('mobile_number.settings')
    ->set('verification_secret', \Drupal::csrfToken()
    ->get('mobile number secret' . rand(0, 999999999)))
    ->save();
}