Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Even with breakpoints included in the theme .info file, enabling the Breakpoints module via a hook_update will not register the settings.
The last update to the dev branch (Commit 6170278 on 7.x-1.x - "only load breakpoints from enabled themes") appears to stop this from working as list_themes returns zero value for status when read from the installation directory to prevent notices.
http://api.drupal.org/api/drupal/includes%21theme.inc/function/list_them...
Comment | File | Size | Author |
---|---|---|---|
#1 | theme_info_status_zero-1940652-1.patch | 581 bytes | Axel Pressbutton |
Comments
Comment #1
Axel Pressbutton CreditAttribution: Axel Pressbutton commentedI've created a patch to remove the status check.
Comment #2
attiks CreditAttribution: attiks commented#1 this means it will import breakpoints from all themes, including disabled themes
If this is in a custom hook_update function, you can create the breakpoints and groups by your self, but maybe it's easier to refactor breakpoints_themes_enabled a bit so it's split in 2 functions:
Comment #3
attiks CreditAttribution: attiks commentedComment #4
attiks CreditAttribution: attiks commented