/[drupal]/contributions/modules/fileserver/fileserver.install
ViewVC logotype

Contents of /contributions/modules/fileserver/fileserver.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Jul 21 22:33:50 2008 UTC (16 months, 1 week ago) by incanus
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-ALPHA2, DRUPAL-6--1-0-ALPHA3, DRUPAL-6--1-0-ALPHA1, HEAD
File MIME type: text/x-php
merging changes from development branch (r4144 to r4457)
 * Requirements:
  * FileFramework 6.x-1.x-dev snapshot dated 2008-Jul-14 or later
   * http://drupal.org/project/fileframework
  * DAV 6.x-1.0-alpha1 or later release (recommended)
   * http://drupal.org/project/dav 6.x-1.0-alpha1
 * renamed files & variables from file_server to fileserver
 * basic Drupal 6.x porting requirements
 * moved settings to DAV section
 * better commenting
 * added 4.7 -> 6.x migration hook
 * better use of native taxonomy functions for child category crawling
 * tested against OG 6.x-rc1
 * clearer help text around OG integration
 * ported to latest Bitcache & FileFramework APIs
 * fixed vocabulary filter to exclude by default as per module intentions
 * use hook_perm()-defined 'create files' privilege when checking file creation
 * stream file contents during hook_dav_get() according to Miglius' guidelines, including access check
 * clarifications on og_vocab integration behavior
 * clarify module name internally as 'File taxonomy server'
 * fixed bugs when moving or copying:
 * when removing from a term, only disassociate the current revision
 * updated hook_help() to properly list module on main help page
 * now properly update files during PUT operations (i.e., in-place edits) using FileFramework
1 <?php
2 // $Id$
3
4 /**
5 * @file
6 * Handles module installation and upgrade tasks.
7 */
8
9 //////////////////////////////////////////////////////////////////////////////
10
11 /**
12 * Implementation of hook_enable().
13 */
14 function fileserver_enable() {
15 drupal_set_message(t('File server was successfully installed. Please review the available <a href="@settings">configuration settings</a>.', array('@settings' => url(FILESERVER_ADMIN_PATH))));
16 }
17
18 /**
19 * Implementation of hook_update_N(). Upgrades settings from 4.7.x due to module rename.
20 */
21 function fileserver_update_6100() {
22 $old_vocabs = variable_get('file_server_vocabularies');
23 if ($old_vocabs) {
24 variable_set('fileserver_vocabularies', $old_vocabs);
25 }
26 $old_og_vocabs = variable_get('file_server_og_vocab');
27 if ($old_og_vocabs) {
28 variable_set('fileserver_og_vocab', $old_og_vocabs);
29 }
30 return array();
31 }
32
33 //////////////////////////////////////////////////////////////////////////////

  ViewVC Help
Powered by ViewVC 1.1.2