Ignore:
Timestamp:
Dec 4, 2013, 9:50:16 PM (11 years ago)
Author:
chronos
Message:
  • Modified: Search page generalized as dynamic configurable list. Other modules can register their search ability.
  • Modified: If sarch is invoked on some module then filter is added to table. Filter have to be disabled to view all items again.
  • Added: Shoutbox can be searched.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Dictionary/Dictionary.php

    r622 r626  
    2525        'Icon' => '',
    2626    ), 1);
     27    if(array_key_exists('Search', $this->System->ModuleManager->Modules))
     28      $this->System->ModuleManager->Modules['Search']->RegisterSearch('dictionary',
     29      T('Dictionary'), array('Text', 'Description'),
     30     '(SELECT * FROM `Dictionary` WHERE `Language` = '.$this->System->Config['OriginalLanguage'].') AS `T`', $this->System->Link('/dictionary/?search='));
    2731  }
    2832}
Note: See TracChangeset for help on using the changeset viewer.