stableversion-3.0
Last change
on this file since fbe146b was
303fae2,
checked in by José Gregorio Puentes <jpuentes@…>, 9 años ago
|
se agregaron los modulos
|
-
Propiedad mode establecida a
100755
|
File size:
562 octetos
|
Ver. | Línea | |
---|
[303fae2] | 1 | <?php |
---|
| 2 | // $Id: views_plugin_argument_default_mi_nivel_planificion.inc |
---|
| 3 | /** |
---|
| 4 | * @file |
---|
| 5 | * Ambito tid default argument by user. |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | class views_plugin_argument_default_mi_nivel_planificion 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.tipo FROM {ente_planificador} as e INNER JOIN {ente_user_planificador} as u ON u.nid = e.nid WHERE u.usuario = %d ", $user->uid); |
---|
| 15 | $row = db_fetch_object($query); |
---|
| 16 | return $row->tipo; |
---|
| 17 | } |
---|
| 18 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.