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.
Since we no longer have the per user block functionality in core these constants are no longer required.
/**
* Users cannot control whether or not they see this block.
*/
const BLOCK_CUSTOM_FIXED = 0;
/**
* Shows this block by default, but lets individual users hide it.
*/
const BLOCK_CUSTOM_ENABLED = 1;
/**
* Hides this block by default but lets individual users show it.
*/
const BLOCK_CUSTOM_DISABLED = 2;
I'll be adding them into the contrib module for the per user block feature: see #1871854: Decide whether to restore per-user block visibility or provide it in contrib
Comment | File | Size | Author |
---|---|---|---|
#1 | remove-unused-block-constants-2078675-1.patch | 677 bytes | benjy |
Comments
Comment #1
benjy CreditAttribution: benjy commentedPatch attached no longer used constants. They will be re-added along with the per user block functionality in contrib: https://drupal.org/project/per_user_block
Comment #2
jibranPatch is green so RTBC.
Comment #3
alexpottCommitted c9b99fc and pushed to 8.x. Thanks!