Jump to content

[PATCH sur V1.1] Trier la liste des Hooks dans admin/modules/position greffer un module


Recommended Posts

Un patch dans admin/tags/adminModulePosition.php pour présenter une liste triée des hooks disponibles pour greffer un module.

   // modif alain debut
   private function _compare($a, $
   {
       return strcmp($a['title'], $b['title']);
   }
   // modif alain fin

  public function displayForm()    <-- LOOK NEAR THIS METHOD ;-)
   {
       global $currentIndex;

... existing code ...

       $modules = $instances;
       $hooks = Hook::getHooks(0);
       // modif alain debut
       usort($hooks, array($this,'_compare'));
       // modif alain fin

... End of code ...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...