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.
Go to admin/config/statuses/settings, there is a setting "Show a view under the status update form at the "Share status" page at /statuses/share"
When I just installed the module, it is fine to choose "none". However, after I choose another views, e.g. statuses_stream views. I cannot re-set the "none" for the setting.
any help?
Thank you so much.
Comment | File | Size | Author |
---|---|---|---|
#3 | statuses-share-no-view-1908470-3.patch | 1.29 KB | IceCreamYou |
Comments
Comment #1
IceCreamYou CreditAttribution: IceCreamYou commentedAs I understand it the problem is not actually with choosing the "None" value for the setting, but rather that when you choose "None" you still have a view showing up at /statuses/share, right?
The cause of the problem is that the "None" value corresponds to the empty string, which is interpreted by theme_statuses_form_display() as an instruction to fall back to a default value. A fix would need to make "None" correspond to a different value that cannot be used in a view machine name (like " ", a space) and then handle that value directly in theme_statuses_form_display().
As a workaround, you can just create a view that gets no results and use that.
Comment #2
adamtong CreditAttribution: adamtong commentedI see. thank you so much!!
Comment #3
IceCreamYou CreditAttribution: IceCreamYou commentedPatch attached. Testing appreciated.