}
/**
+ * Implementation of hook_form_FORM_ID_alter.
+ *
* Clear imagecache presets cache on admin/build/modules form.
*/
function imagecache_form_system_modules_alter(&$form, $form_state) {
}
/**
+ * Implementation of hook_form_FORM_ID_alter.
+ *
+ * The file system form is modified to include an extra submit handler, so
+ * that imagecache can rebuild the menu after the filesystem path is changed.
+ */
+function imagecache_form_system_file_system_settings_alter(&$form, &$form_state) {
+ $form['#submit'][] = 'imagecache_system_file_system_submit';
+}
+
+/**
+ * Rebuild menus to ensure we've got the right files directory callback.
+ */
+function imagecache_system_file_system_submit($form, &$form_state) {
+ menu_rebuild();
+}
+
+
+/**
* Implementation of hook_theme().
*/
function imagecache_theme() {
}
return $files;
}
+