function bar_route_identifier($hook, $type, $value, $params) { $value['identifier'] = 'foo'; return $value; }