addresses_user_install

Versions
6
addresses_user_install()

Implementation of hook_install().

Code

contributions/addresses/addresses_user/addresses_user.install, line 11

<?php
function addresses_user_install() {
  // Install the necessary Database tables
  drupal_install_schema('addresses_user');

  // Save the list of the installed fields
  $fields = module_invoke_all('addressesfieldapi', 'fields');
  $fields_installed = array();
  foreach (array_keys($fields) as $field) {
    $fields_installed[$field] = TRUE;
  }
  variable_set('addresses_user_fields', $fields_installed);
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.