stableversion-3.0
Last change
on this file since 303fae2 was
303fae2,
checked in by José Gregorio Puentes <jpuentes@…>, 9 años ago
|
se agregaron los modulos
|
-
Propiedad mode establecida a
100755
|
File size:
543 octetos
|
Línea | |
---|
1 | <?php |
---|
2 | // $Id: views_plugin_argument_default_mi_ambito.inc |
---|
3 | /** |
---|
4 | * @file |
---|
5 | * Ambito tid default argument by user. |
---|
6 | */ |
---|
7 | |
---|
8 | class views_plugin_argument_default_mi_ambito extends views_plugin_argument_default { |
---|
9 | /** |
---|
10 | * Default argument plugin to extract the global $user |
---|
11 | */ |
---|
12 | function get_argument() { |
---|
13 | global $user; |
---|
14 | $query = db_query("SELECT e.ambito FROM {ente_user_planificador} as u INNER JOIN {ente_planificador} as e ON e.nid = u.nid WHERE u.usuario = %d", $user->uid); |
---|
15 | $row = db_fetch_object($query); |
---|
16 | return $row->ambito; |
---|
17 | } |
---|
18 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.