Show
Ignore:
Timestamp:
09/10/06 20:19:11 (7 years ago)
Author:
mheydon1973
Message:

* Wasn't working at all on mine...something around type=tool I think -- fixed
* Now new gui hook compatible

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.2/gabcast/functions.inc.php

    r1938 r2406  
    22 /* $Id:$ */ 
    33 
    4 function gabcast_hook_core($viewing_itemid, $target_menuid) { 
    5   if ($viewing_itemid != "" & ($target_menuid == 'extensions' | $target_menuid == 'users')) {  
     4function gabcast_configpageinit($dispnum) { 
     5  global $currentcomponent; 
     6 
     7  if ( $dispnum == 'users' || $dispnum == 'extensions' ) { 
     8    $currentcomponent->addguifunc('gabcast_configpageload'); 
     9  }  
     10
     11 
     12function gabcast_configpageload() { 
     13  global $currentcomponent; 
     14 
     15  $viewing_itemid = $_REQUEST['extdisplay']; 
     16  if ( $viewing_itemid != '' ) { 
    617    $list = gabcast_get($viewing_itemid); 
    718    if (is_array($list)) { 
    8       $res = "<p><a href='".$_SERVER['PHP_SELF']."?display=gabcast&amp;ext=$viewing_itemid&amp;action=edit'>"; 
    9       $res .= _("Edit Gabcast Settings")."</a></p>"
     19      $res = $_SERVER['PHP_SELF']."?display=gabcast&type=tool&ext=$viewing_itemid&action=edit"; 
     20      $currentcomponent->addguielem('_top', new gui_link('gabcastlink', 'Edit Gabcast Settings', $res))
    1021    } else { 
    11       $res = "<p><a href='".$_SERVER['PHP_SELF']."?display=gabcast&amp;ext=$viewing_itemid&amp;action=add'>"; 
    12       $res .= _("Add Gabcast Settings")."</a></p>"
     22      $res = $_SERVER['PHP_SELF']."?display=gabcast&type=tool&ext=$viewing_itemid&action=add"; 
     23      $currentcomponent->addguielem('_top', new gui_link('gabcastlink', 'Add Gabcast Settings', $res))
    1324    } 
    14     return $res; 
    1525  } 
    1626} 
     
    2838  return $extens; 
    2939  } else { 
    30   return null; 
     40  return null; 
    3141  } 
    3242} 
  • modules/branches/2.2/gabcast/module.xml

    r2351 r2406  
    22  <rawname>gabcast</rawname> 
    33  <name>Gabcast</name> 
    4   <version>1.1</version> 
    5   <type>tools</type> 
     4  <version>1.2.0</version> 
     5  <type>tool</type> 
    66  <category>Addon</category> 
    77  <menuitems> 
  • modules/branches/2.2/gabcast/page.gabcast.php

    r1938 r2406  
    102102  if(isset($_REQUEST['action']) && $_REQUEST['action'] == 'add') { 
    103103    $thisxtn['ext'] = $_REQUEST['ext']; 
     104    $thisxtn[0] = $_REQUEST['ext']; 
    104105    $player = ""; 
    105106    $action = 'add';