Here is a patch that defines a function to set block collapsible state (and uses constants for these states).
It's easier when we need to configure a block programmatically...

This patch also includes following patches (because of conflicts when applying all these patches) :

  • JS error - $.cookie is not a function - http://drupal.org/files/missing-jquery-cookie-1429956-3.patch
  • Collapse facet from Facet API and Search API - http://drupal.org/files/array2lower-1301454-1.patch
  • Comments

    gagarine’s picture

    Category: task » feature
    Status: Needs review » Needs work

    I like the idea.

    The other patch got committed. Will be nice if the patch can be redone.

    This also need some documentation in readme.

    cthiebault’s picture

    Status: Needs work » Needs review
    StatusFileSize
    new6.8 KB

    Here is the cleaned patch.
    I've updated the readme file... but feel free to correct my english ;)

    darvanen’s picture

    Version: 7.x-1.x-dev » 7.x-2.x-dev
    Issue summary: View changes
    Status: Needs review » Needs work

    Valuable addition for V2 I think.

    darvanen’s picture

    Status: Needs work » Closed (outdated)

    I *think* the new 2.x versions make this change redundant.

    Please reopen if you think something along these lines is still needed for 7.x-2.x or 8.x-2.x