Changeset 6008
- Timestamp:
- 07/14/08 16:59:08 (4 years ago)
- Files:
-
- modules/branches/2.5/ringgroups/functions.inc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/ringgroups/functions.inc.php
r5281 r6008 52 52 $ext->addInclude('from-internal-additional','grps'); 53 53 $contextname = 'ext-group'; 54 $ringlist = ringgroups_list( );54 $ringlist = ringgroups_list(true); 55 55 if (is_array($ringlist)) { 56 56 foreach($ringlist as $item) { … … 182 182 } 183 183 184 function ringgroups_list( ) {184 function ringgroups_list($get_all=false) { 185 185 $results = sql("SELECT grpnum, description FROM ringgroups ORDER BY CAST(grpnum as UNSIGNED)","getAll",DB_FETCHMODE_ASSOC); 186 186 foreach ($results as $result) { 187 if (isset($result['grpnum']) && checkRange($result['grpnum'])) { 188 $grps[] = array($result['grpnum'], $result['description']); 187 if ($get_all || (isset($result['grpnum']) && checkRange($result['grpnum']))) { 188 $grps[] = array( 189 0 => $result['grpnum'], 190 1 => $result['description'], 191 'grpnum' => $result['grpnum'], 192 'description' => $result['description'], 193 ); 189 194 } 190 195 } … … 215 220 } 216 221 217 function ringgroup _check_destinations($dest=true) {222 function ringgroups_check_destinations($dest=true) { 218 223 global $active_modules; 219 224
