uif.module in User Import Framework 7
Same filename and directory in other branches
Simple, extensible user import from a CSV file.
File
uif.moduleView source
<?php
/**
* @file
* Simple, extensible user import from a CSV file.
*/
/**
* Implementation of hook_init()
*/
function uif_init() {
drupal_add_css(drupal_get_path('module', 'uif') . '/uif.css');
}
/**
* Implementation of hook_menu().
*/
function uif_menu() {
$items = array();
$items['admin/people/uif'] = array(
'title' => 'Import',
'description' => 'Import or update users.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uif_import_form',
),
'access arguments' => array(
'import users',
),
'file' => 'uif.admin.inc',
'type' => MENU_LOCAL_TASK,
);
// Configuration menu.
$items['admin/config/people/uif'] = array(
'title' => 'User Import Framework Settings',
'description' => 'Configuration page for User Import Framework.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uif_configuration_page',
),
'access arguments' => array(
'access administration pages',
),
'file' => 'uif.admin.inc',
);
return $items;
}
/**
* Implementation of hook_permission().
*/
function uif_permission() {
return array(
'import users' => array(
'title' => t('Import users'),
'description' => t('Import and update users.'),
),
);
}
/**
* Implementation of hook_theme().
*/
function uif_theme() {
return array(
'uif_preview_users' => array(
'file' => 'uif.admin.inc',
'variables' => array(
'data' => NULL,
'limit' => NULL,
),
),
'uif_preview_one_user' => array(
'file' => 'uif.admin.inc',
'variables' => array(
'data' => NULL,
),
),
'uif_form_help' => array(
'file' => 'uif.admin.inc',
'variables' => array(),
),
);
}
Functions
Name | Description |
---|---|
uif_init | Implementation of hook_init() |
uif_menu | Implementation of hook_menu(). |
uif_permission | Implementation of hook_permission(). |
uif_theme | Implementation of hook_theme(). |