]> granicus.if.org Git - ejabberd/commitdiff
Rename module function to keep them grouped on help
authorChristophe Romain <christophe.romain@process-one.net>
Fri, 13 Mar 2015 10:54:32 +0000 (11:54 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Fri, 13 Mar 2015 10:54:32 +0000 (11:54 +0100)
src/ext_mod.erl

index 99b690255b832b18f11ebd750058b16e6753415a..11597ef24034b4fd7004c8433ed603a8ec5149e7 100644 (file)
@@ -53,14 +53,14 @@ stop() ->
     ejabberd_commands:unregister_commands(commands()).
 
 commands() ->
-    [#ejabberd_commands{name = update_modules_specs,
+    [#ejabberd_commands{name = modules_update_specs,
                         tags = [admin,modules],
                         desc = "",
                         longdesc = "",
                         module = ?MODULE, function = update,
                         args = [],
                         result = {res, integer}},
-     #ejabberd_commands{name = available_modules,
+     #ejabberd_commands{name = modules_available,
                         tags = [admin,modules],
                         desc = "",
                         longdesc = "",
@@ -70,7 +70,7 @@ commands() ->
                                   {module, {tuple,
                                    [{name, atom},
                                     {summary, string}]}}}}},
-     #ejabberd_commands{name = installed_modules,
+     #ejabberd_commands{name = modules_installed,
                         tags = [admin,modules],
                         desc = "",
                         longdesc = "",
@@ -80,28 +80,28 @@ commands() ->
                                   {module, {tuple,
                                    [{name, atom},
                                     {summary, string}]}}}}},
-     #ejabberd_commands{name = install_module,
+     #ejabberd_commands{name = module_install,
                         tags = [admin,modules],
                         desc = "",
                         longdesc = "",
                         module = ?MODULE, function = install,
                         args = [{module, binary}],
                         result = {res, integer}},
-     #ejabberd_commands{name = uninstall_module,
+     #ejabberd_commands{name = module_uninstall,
                         tags = [admin,modules],
                         desc = "",
                         longdesc = "",
                         module = ?MODULE, function = uninstall,
                         args = [{module, binary}],
                         result = {res, integer}},
-     #ejabberd_commands{name = upgrade_module,
+     #ejabberd_commands{name = module_upgrade,
                         tags = [admin,modules],
                         desc = "",
                         longdesc = "",
                         module = ?MODULE, function = upgrade,
                         args = [{module, binary}],
                         result = {res, integer}},
-     #ejabberd_commands{name = check_module,
+     #ejabberd_commands{name = module_check,
                         tags = [admin,modules],
                         desc = "",
                         longdesc = "",