Index: image_exact.module =================================================================== --- image_exact.module (revision 908) +++ image_exact.module (revision 909) @@ -13,10 +13,22 @@ } /* -* Implementation of hook_settings +* Implementation of hook_menu */ +function image_exact_menu($may_cache) { + $items[] = array( + 'path' => 'admin/settings/image_exact', + 'title' => t('Image Exact'), + 'description' => t('Configure the Image Exact module.'), + 'callback' => 'drupal_get_form', + 'callback arguments' => array('image_exact_admin_settings'), + 'access' => user_access('administer site configuration'), + 'type' => MENU_NORMAL_ITEM, // optional + ); + return $items; +} -function image_exact_settings() { +function image_exact_admin_settings() { if (!image_get_toolkit()) { drupal_set_message('You must enable an image toolkit for this module to work!', 'error'); } @@ -62,7 +74,7 @@ '#description' => t('Because of how the avatar system works, you need to enter a value in the %link that is DOUBLE what you want the real avatar size to be. If you want 85x85 exact, check the above box, then change the setting on the %link to 170x170', array('%link' => $user_settings)), ); } - return $form; + return system_settings_form($form); } /*