Changeset 5745

Show
Ignore:
Timestamp:
04/24/08 17:56:49 (5 years ago)
Author:
p_lindheimer
Message:

add oldstyle module hook so other modules can hook these

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.4/paging/page.paging.php

    r5731 r5745  
    9595 
    9696function paging_show($xtn, $display, $type, $conflict_url=array()) { 
     97  global $module_hook; 
     98 
    9799  if ($xtn) { 
    98100    $selected = paging_get_devs($xtn); 
     
    157159  <tr><td><label for="force_page"><a href='#' class='info'><?php echo _("Force if busy") ?><span> 
    158160  <?php echo _("If selected, will not check if the device is in use before paging it. This means conversations can be interrupted by a page (depending on how the device handles it). This is useful for \"emergency\" paging groups ") ?></span></a></label></td> 
    159   <td><input type='checkbox' name='force_page' id="force_page" value='1' <?php if ($force_page) { echo 'CHECKED'; } ?>></td> 
     161  <td><input type='checkbox' name='force_page' id="force_page" value='1' <?php if ($force_page) { echo 'CHECKED'; } ?>></td></tr> 
    160162 
    161163  <tr><td><label for="duplex"><a href='#' class='info'><?php echo _("Duplex") ?><span> 
    162164  <?php echo _("Paging is typically one way for annoucements only. Checking this will make the paging duplex, allowing all phones in the paging group to be able to talk and be heard by all. This makes it like an \"instant conference\"") ?></span></a></label></td> 
    163   <td><input type='checkbox' name='duplex' id="duplex" value='1' <?php if ($duplex) { echo 'CHECKED'; } ?>></td> 
     165  <td><input type='checkbox' name='duplex' id="duplex" value='1' <?php if ($duplex) { echo 'CHECKED'; } ?>></td></tr> 
    164166 
    165167  <tr><td><label for="default_group"><a href='#' class='info'><?php echo _("Default Page Group") ?><span> 
    166168  <?php echo _("Each PBX system can have a single Default Page Group. If specified, extensions can be automatically added (or removed) from this group in the Extensions (or Devices) tab.<br />Making this group the default will uncheck the option from the current default group if specified.") ?></span></a></label></td> 
    167   <td><input type='checkbox' name='default_group' id="default_group" value='1' <?php if ($default_group) { echo 'CHECKED'; } ?>></td> 
     169  <td><input type='checkbox' name='default_group' id="default_group" value='1' <?php if ($default_group) { echo 'CHECKED'; } ?>></td></tr> 
     170 
     171<?php 
     172      // implementation of module hook 
     173      // object was initialized in config.php 
     174      echo $module_hook->hookHtml; 
     175?> 
    168176   
    169177  <tr> 
  • modules/branches/2.4/queues/page.queues.php

    r5594 r5745  
    671671  </tr> 
    672672<?php } ?> 
     673<?php 
     674  // implementation of module hook 
     675  // object was initialized in config.php 
     676  echo $module_hook->hookHtml; 
     677?> 
    673678 
    674679  <tr><td colspan="2"><br><h5><?php echo _("Fail Over Destination")?><hr></h5></td></tr> 
  • modules/branches/2.4/ringgroups/page.ringgroups.php

    r5340 r5745  
    368368      </tr> 
    369369<?php } ?> 
     370<?php 
     371      // implementation of module hook 
     372      // object was initialized in config.php 
     373      echo $module_hook->hookHtml; 
     374?> 
    370375 
    371376      <tr><td colspan="2"><br><h5><?php echo _("Destination if no answer")?>:<hr></h5></td></tr> 
  • modules/branches/2.4/vmblast/page.vmblast.php

    r5601 r5745  
    213213          <input type='checkbox' name='default_group' id="default_group" value='1' <?php if ($default_group) { echo 'CHECKED'; } ?>> 
    214214        </td> 
    215  
     215      </tr> 
     216 
     217<?php 
     218      // implementation of module hook 
     219      // object was initialized in config.php 
     220      echo $module_hook->hookHtml; 
     221?> 
    216222      <tr> 
    217223      <td colspan="2"><br><h6><input name="Submit" type="submit" value="<?php echo _("Submit Changes")?>"></h6></td>