function avatar_selection_install in Avatar Selection 7
Same name and namespace in other branches
- 5.2 avatar_selection.install \avatar_selection_install()
- 5 avatar_selection.install \avatar_selection_install()
- 6 avatar_selection.install \avatar_selection_install()
Implements 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 112 - 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/config/people/accounts'),
)));
}
}