uif_plus.install in User Import Framework Plus 7
User import from a CSV file.
File
uif_plus.installView source
<?php
/**
* @file
* User import from a CSV file.
*/
/**
* Implements hook_install().
*/
function uif_plus_install() {
$directory = file_default_scheme() . '://uif_plus';
file_prepare_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);
}
/**
* Implements hook_uninstall().
*/
function uif_plus_uninstall() {
db_query('DELETE FROM {variable} WHERE name LIKE :uif_plus', array(
':uif_plus' => 'uif_plus_' . '%',
));
}
/**
* Check and make sure uif_plus images sub-directory exists
*/
function uif_plus_update_7000() {
$directory = file_default_scheme() . '://uif_plus';
file_prepare_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);
}
Functions
Name | Description |
---|---|
uif_plus_install | Implements hook_install(). |
uif_plus_uninstall | Implements hook_uninstall(). |
uif_plus_update_7000 | Check and make sure uif_plus images sub-directory exists |