alain91 Posted April 27, 2009 Share Posted April 27, 2009 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 More sharing options...
cerberus22 Posted April 28, 2009 Share Posted April 28, 2009 Hi Alain91,Where do I paste the code (in what part of adminModulePosition.php)All the best,Cerberus22 Link to comment Share on other sites More sharing options...
Patric Posted April 28, 2009 Share Posted April 28, 2009 Sans vouloir commander, quand vous postez des bouts de code de ce genre, il serait bon de dire à quelle(s) version(s) de PS ça s'applique.Ca évitera d'éventuels désagréments pour les versions futures. ;-) Link to comment Share on other sites More sharing options...
alain91 Posted April 28, 2009 Author Share Posted April 28, 2009 OK j'ai mis des précisions dans mon post initial Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now