You are here

function avatar_selection_install in Avatar Selection 6

Same name and namespace in other branches
  1. 5.2 avatar_selection.install \avatar_selection_install()
  2. 5 avatar_selection.install \avatar_selection_install()
  3. 7 avatar_selection.install \avatar_selection_install()

Implementation of hook_install().

Write table structure to the SQL database. If the 'user_picture' option is set to off, a warning will be printed.

File

./avatar_selection.install, line 50
The Avatar Selection module install file.

Code

function avatar_selection_install() {
  $t = get_t();
  if (!variable_get('user_pictures', 0)) {
    drupal_set_message($t('User Pictures option is disabled.  You will need to enable this option before you can use the Avatar Selection module.  You may configure this setting at the <a href="@url">User settings</a> page.', array(
      '@url' => url('admin/user/settings'),
    )));
  }
  drupal_install_schema('avatar_selection');
}