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.
Hi!
I can't access to argument->value during hook_views_post_render() (Executes finally as I know).
function [custom]_views_post_render(&$view) {
if ($view->current_display == 'display_name') {
foreach ($view->argument as $name => $argument) {
if ($argument instanceof views_handler_argument_term_node_tid_depth) {
dpm($argument);
// Argument value here is NULL, but argument->argument is present in raw format.
if (count($argument->value) == 1) {
if ($taxonomy_term = taxonomy_term_load(reset($argument->value))) {
// little manipulations with title and breadcrubms...
}
}
}
}
}
}
Is anybody faced with similar problem?
thx!
Comments
Comment #1
MustangGB CreditAttribution: MustangGB commented