1. 08 Sep, 2005 1 commit
  2. 28 Aug, 2005 2 commits
    • Dries's avatar
    • Dries's avatar
      - Patch #29785 by Chx: multiple node types were broken so we refactored · c9fc300b
      Dries authored
        part of the node system!  If you have a module that implements node
        types, you'll have to udpate its CVS HEAD version.
      
        We replaced _node_name() and _node_types() by _node().  The new _node()
        hook let's you define one or more node types, including their names.
        The implementation of the _node() hook needs to:
      
         return array($type1 => array('name' => $name1, 'base' => $base1),
                      $type2 => array('name' => $name2, 'base' => $base2));
      
        where $type is the node type, $name is the human readable name of the type
        and $base is used instead of <hook> for <hook>_load, <hook>_view, etc.
      
        For example, the story module's node hook looks like this:
      
          function story_node() {
            return array('story' => array('name' => t('story'), 'base' => 'story'));
          }
      
        The page module's node hook module like:
      
          function page_node() {
            return array('page' => array('name' => t('page'), 'base' => 'page'));
          }
      
        However, more complex node modules like the project module and the
        flexinode module can use the 'base' parameter to specify a different base.
      
        The project module implements two node types, proejcts and issues, so it
        can do:
      
          function project_node() {
            return array(
             array('project_project' => array('name' => t('project'), 'base' => 'project'),
             array('project_issue' => array('name' => t('issue'), 'base' => 'project_issue'));
          }
      
        In the flexinode module's case there can only one base ...
      
        This hook will simplify the CCK, and will make it easy (or easier) to merge
        the story and page module.
      
        In addition, node_list() became node_get_types().  In addition, we created
        the following functions: node_get_name($type) and node_get_base($type).
      c9fc300b
  3. 25 Aug, 2005 1 commit
  4. 22 Aug, 2005 1 commit
    • Dries's avatar
      - Patch #29274 by Jeremy: the "fuzzy cache" mechanism is supposed to enforce a... · 75abab24
      Dries authored
      - Patch #29274 by Jeremy: the "fuzzy cache" mechanism is supposed to enforce a minimum time before the cache table is flushed. Logical errors in the fuzzy cache implementation are leading to the cache table being flushed more frequently.  Configuration is simplified by removing all references to "strict" and "loose" caches. Instead, the cache is either "disabled" or "enabled". Additionally, the site administrator can now configure the "minimum cache lifetime", the minimum amount of time cached data will remain cached.
      75abab24
  5. 18 Aug, 2005 1 commit
    • Dries's avatar
      - Patch #29002 by Neil: list_themes() currently returns all themes, not just... · 1836d3b3
      Dries authored
      - Patch #29002 by Neil: list_themes() currently returns all themes, not just enabled themes. This functionality is only used in one place- configuration for disabled themes. These configuration pages can be removed with a usability improvement since you shouldn't be able to configure things which are disabled. Additionally, this allows us to remove some extra logic in system_user(). And it it more consistent with the module API which only lists enabled modules.
      
      list_themes() sorts the results by name. This uses filesort in MySQL since there aren't any indexes. Sorting is not used except in system_user(). This one use can be handled with ksort since it is not often executed (only on the user edit screen when multiple themes are enabled).
      
      And a one line fix to remove a variable in system_user() is in here too.
      1836d3b3
  6. 16 Aug, 2005 1 commit
  7. 31 Jul, 2005 2 commits
  8. 30 Jul, 2005 1 commit
  9. 26 Jul, 2005 1 commit
  10. 25 Jul, 2005 1 commit
  11. 23 Jul, 2005 1 commit
  12. 17 Jul, 2005 1 commit
  13. 27 Jun, 2005 1 commit
  14. 21 Jun, 2005 1 commit
  15. 07 Jun, 2005 1 commit
  16. 01 Jun, 2005 1 commit
  17. 25 May, 2005 1 commit
  18. 21 May, 2005 1 commit
  19. 17 May, 2005 1 commit
  20. 14 May, 2005 1 commit
  21. 05 May, 2005 1 commit
    • Dries's avatar
      - Patch #21855 by TDobes: the recent commit of phptemplate caused a number of... · 6658273b
      Dries authored
      - Patch #21855 by TDobes: the recent commit of phptemplate caused a number of problems for non-phptemplate themes. A patch is attached to address these issues.
      
        Changes include:
          * parsing of the primary/secondary links has been moved out of phptemplate and into theme_get_setting.
          * unnecessary and XHTML-invalidating duplicate div#help removed from themes/bluemarine/page.tpl.php (this is already generated by theme_help)
          * weird generation of the "edit primary/secondary links" messages removed from bluemarine and placed in theme.inc
          * unnecessary changes to themes/bluemarine/style.css rolled back (the phptemplate bluemarine had an older version of style.css than the one in core)
          * chameleon updated to work with new link scheme (passes links through theme_links)
      6658273b
  22. 04 May, 2005 1 commit
  23. 24 Apr, 2005 1 commit
    • Dries's avatar
      · a76a1e1f
      Dries authored
      - Patch 20910 by chx: centralize print theme page.
      a76a1e1f
  24. 11 Apr, 2005 1 commit
    • Dries's avatar
      - Patch #19298 by Jeremy: loose caching! · e3d62d90
      Dries authored
      Drupal's existing caching mechanism doesn't perform well on highly dynamic websites in which the cache is flushed frequently. One example is a site that is under attack by a spambot that is posting spam comments every few seconds, causing all cached pages to be flushed every few seconds.  Loose caching immediately flushes the cache only for specific users who have modified cached data (whether or not they are logged in), delaying the flushing of data for other users by several minutes.
      
      (I rewrote the help text a bit and made minor changes to the code comments.)
      e3d62d90
  25. 01 Apr, 2005 1 commit
  26. 27 Mar, 2005 1 commit
  27. 23 Mar, 2005 1 commit
  28. 21 Mar, 2005 1 commit
    • Dries's avatar
      · f8d634e3
      Dries authored
      - Patch #18093 by Junyor: clean up handling of image toolkit code in absence of
        any toolkits.
      f8d634e3
  29. 18 Mar, 2005 2 commits
  30. 16 Mar, 2005 1 commit
    • Dries's avatar
      · 97ae6568
      Dries authored
      - Patch #13738 by TDobes: theme system fixes:
      
      * Fix a bug which would cause the "configure" link for styles to be broken.
      * Fix a bug with using drupal_get_filename for theme engines. Although this is not called anywhere in core, we should still fix it for contrib. (i.e. themes that may want to manually invoke a theme engine to create a hybrid theme)
      * Correct an inaccurate comment in theme.inc
      * Populate the default primary links with an "edit primary links" link for consistency with the secondary links
      * remove some unnecessary variables in the theme administration which had misleading and confusing names
      * replace time-consuming foreach when rendering theme admin page with a more efficient array_key_exists
      * usability: rather than completely removing the search box checkbox when search.module is disabled, simply disable it. (UI elements shouldn't appear/disappear.)
      97ae6568
  31. 08 Mar, 2005 1 commit
  32. 05 Mar, 2005 1 commit
  33. 12 Feb, 2005 1 commit
    • Dries's avatar
      - Patch #17208 by asimmonds: help text fixes: · 5b7ecb86
      Dries authored
          - permissions menu link updates in a number of modules help
          - anchor link fix in distributed auth help
          - "my account" link fix in user help
          - spelling correction in tracker.module help
      
      - I also changed 'admin/access/perms' to 'admin/access/permissions'.
      5b7ecb86
  34. 08 Feb, 2005 1 commit
  35. 01 Feb, 2005 1 commit
    • Dries's avatar
      - Patch #16358 by James: added toolkit to enable better image handling. The... · 7ccc5a6b
      Dries authored
      - Patch #16358 by James: added toolkit to enable better image handling.  The avatar code and the upload module have been updated to take advantage of the new image API.
      
      There are 5 main functions that modules may now utilize to handle images:
      
      * image_get_info() - this function checks a file.  If it exists and is a valid image file, it will return an array containing things like the pixel dimensions of the image, plus the 'type' and common extension.
      * image_scale - resizes a given image to fit within a given width / height dimensions, while maintaining aspect ratio (not distorting the image).  This function can be used to generate thumbnails, or ensure a maximum resolution, etc.
      * image_resize - similar to image_scale (but will not respect aspect ratio - may well distort the image).
      * image_rotate - rotate an image by X degrees
      * image_crop - crops an image to a given rectangle (defined as top-left x/y coordinates plus a width & height of the rectangle).
      
      Contribution modules will now be able to rely on these base manipulation functions to offer additional functionality (such as image nodes, photo galleries, advanced image manipulation, etc).
      7ccc5a6b
  36. 24 Jan, 2005 1 commit
  37. 14 Jan, 2005 1 commit