Skip to content
Snippets Groups Projects
Commit c5c8dd13 authored by Tim Steiner's avatar Tim Steiner
Browse files

Stub for adding the people finder import tool.

git-svn-id: file:///tmp/wdn_thm_drupal/trunk@259 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 9114b5db
No related branches found
No related tags found
No related merge requests found
<?php
function unl_cas_user_import($form, &$form_state) {
$form['root']['#type'] = 'fieldset';
$form['root']['#title'] = 'Import from peoplefinder.';
$form['submit']['#type'] = 'submit';
$form['submit']['#value'] = 'Search';
return $form;
}
\ No newline at end of file
......@@ -48,9 +48,24 @@ function unl_cas_menu() {
'access callback' => TRUE,
);
$items['admin/people/import'] = array(
'title' => 'Import User',
'description' => 'Import a user from UNL People Finder',
'access arguments' => array('administer users'),
'page callback' => 'drupal_get_form',
'page arguments' => array('unl_cas_user_import'),
'type' => MENU_LOCAL_ACTION,
'file' => 'unl_cas.admin.inc',
);
return $items;
}
function unl_cas_menu_alter(&$items)
{
unset($items['admin/people/create']);
}
function unl_cas_validate() {
$cas = unl_cas_get_adapter();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment