Index: advuser.module =================================================================== RCS file: /cvs/drupal/contributions/modules/advuser/advuser.module,v retrieving revision 1.12 diff -u -p -r1.12 advuser.module --- advuser.module 20 Jan 2007 21:05:26 -0000 1.12 +++ advuser.module 13 Feb 2007 19:28:52 -0000 @@ -26,10 +26,19 @@ define('ADVUSER_DEFAULT_PROFILE_FIELDS', function advuser_menu($may_cache) { // code which should run exactly once per page view if (!$may_cache) { - theme_add_style(drupal_get_path('module', 'advuser') .'/advuser.css'); + drupal_add_css(drupal_get_path('module', 'advuser') .'/advuser.css'); } $items = array(); if ($may_cache) { + $items[] = array( + 'path' => 'admin/settings/advuser', + 'title' => t('Advanced User'), + 'description' => t('Advanced User Settings'), + 'callback' => 'drupal_get_form', + 'callback arguments' => array('advuser_settings'), + 'access' => user_access('administer site configuration'), + 'type' => MENU_NORMAL_ITEM, + ); $items[] = array('path' => 'admin/user/advuser', 'title' => t('advanced managment'), @@ -332,7 +341,7 @@ function advuser_multiple_email_confirm_ if ($edit['confirm']) { foreach ($edit['users'] as $uid => $value) { $account = user_load(array('uid'=>$uid)); - if ( module_exist('lightcrm') ) { + if ( module_exists('lightcrm') ) { _lightcrm_comment_add($uid, $edit['mailsubject'], $edit['mailbody']); } else { $from = variable_get("site_mail", ini_get("sendmail_from")); // http://drupal.org/node/77689 @@ -678,7 +687,7 @@ function advuser_settings() { '#value' => '
WARNING: No roles selected! - no email notifications will be sent.
'); } - if ( module_exist('profile') ) { + if ( module_exists('profile') ) { $form['advuser_profile'] = array( '#type' => 'fieldset', '#title' => t('Profile module special settings'), @@ -709,7 +718,7 @@ function advuser_settings() { ); } - return $form; + return system_settings_form($form); } /** @@ -831,4 +840,4 @@ function advuser_user($type, &$edit, &$u //print $type; } -?> \ No newline at end of file +?>