We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add config settings to the sitefarm_core.settings.php file for the context keys that should be hidden on blocks created by views.
// Remove Views contextual filter UI elements from Block Configuration if ($form_id == 'block_form' && !empty($form['settings']['context_mapping'])) { $context_keys = [ 'nid', 'nid_1', 'tid', 'field_sf_gallery_category_target_id', ]; foreach ($context_keys as $key) { if (array_key_exists($key, $form['settings']['context_mapping'])) { $form['settings']['context_mapping'][$key]['#access'] = FALSE; } } }
The text was updated successfully, but these errors were encountered:
Duplicate of #96
Sorry, something went wrong.
mrkmiller
No branches or pull requests
Add config settings to the sitefarm_core.settings.php file for the context keys that should be hidden on blocks created by views.
The text was updated successfully, but these errors were encountered: