D7 get the taxonomic term ID of the standard URL then pass it to the views as a context filter

is a simple question, I would like to get the term ID (tid) from the taxonomy drupal standard taxonomy / term / 167 or 167 is my value and its use as argument on the views.

I found this code to get the tid:

$ term_path = drupal_get_normal_path (& nbsp; & nbsp; arg (1));
$ tid = basename ($ term_url);
$$ here_is_my_tid = taxonomy_term_load ($ tid);

How to get the taxonomy by URL alias?

I'm also trying:

$ here_is_my_tid = drupal_lookup_path (& # 39; source & # 39; taxonomy / term /&#39 ;.$ tid);


$ here_is_my_tid = drupal_get_path_alias (& taxonomy / term / & # 39 ;. $ tid);

But I try a lot of combination without success.

Here is my point of view with the url's tid, I'm trying to pass "$ here_is_my_tid"

$ view1 = views_embed_view ('mavue', 'page', $ here_is_my_tid);

if (arg (0) == & taxonomy && 39; && arg (1) == & # 39;) {
$ tid = (int) arg (2);
$ term = taxonomy_term_load ($ tid);

}
$ view1 = views_embed_view ('mavue', 'page', $ term);

Thank you in advance