Commit e7413a69 by Scott

Coding style (app/admin.php)

parent ec888472
...@@ -594,32 +594,33 @@ ...@@ -594,32 +594,33 @@
} }
/**
* Return the hash code for the plugin in $directory (without trailing slash), used for in-page navigation on admin/plugins page
*/
function qa_admin_plugin_directory_hash($directory) function qa_admin_plugin_directory_hash($directory)
/*
Return the hash code for the plugin in $directory, used for in-page navigation on admin/plugins page
*/
{ {
return md5($directory); return md5($directory);
} }
/**
* Return the URL (relative to the current page) to navigate to the options panel for the plugin in $directory (without trailing slash)
*/
function qa_admin_plugin_options_path($directory) function qa_admin_plugin_options_path($directory)
/*
Return the URL (relative to the current page) to navigate to the options panel for the plugin in $directory
*/
{ {
$hash=qa_admin_plugin_directory_hash($directory); $hash = qa_admin_plugin_directory_hash($directory);
return qa_path_html('admin/plugins', array('show' => $hash), null, null, $hash); return qa_path_html('admin/plugins', array('show' => $hash), null, null, $hash);
} }
/**
* Return the URL (relative to the current page) to navigate to the options panel for plugin module $name of $type
*/
function qa_admin_module_options_path($type, $name) function qa_admin_module_options_path($type, $name)
/*
Return the URL (relative to the current page) to navigate to the options panel for plugin module $name of $type
*/
{ {
$info = qa_get_module_info($type, $name); $info = qa_get_module_info($type, $name);
$dir = rtrim($info['directory'], '/'); $dir = rtrim($info['directory'], '/');
return qa_admin_plugin_options_path($dir); return qa_admin_plugin_options_path($dir);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment