summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpspice_to_kicad.module43
1 files changed, 24 insertions, 19 deletions
diff --git a/pspice_to_kicad.module b/pspice_to_kicad.module
index 6389719..7764cb9 100755
--- a/pspice_to_kicad.module
+++ b/pspice_to_kicad.module
@@ -1,22 +1,4 @@
<?php
-function pspice_to_kicad_permission()
-{
- return array(
- "access pspice_to_kicad" => array(
- "title" => t("Access pspice_to_kicad"),
- "description" => t("Allows users to view converted."),
- ),
- "manage pspice_to_kicad" => array(
- "title" => t("Upload pspice_to_kicad Files"),
- "description" => t("Allows users to upload files for pspice to kicad convertor."),
- ),
- "convert pspice_to_kicad" => array(
- "title" => t("Files to be converted"),
- "description" => t("Allows admin to see files to be convert from pspice to kicad."),
- ),
-
- );
-}
function pspice_to_kicad_menu()
{
@@ -107,7 +89,7 @@ function pspice_to_kicad_menu()
'title' => 'Delete File',
'description' => 'Delete File',
'page callback' => 'pspice_to_kicad_delete_file',
- 'access arguments' => array("convert pspice_to_kicad"),
+ 'access arguments' => array("delete pspice_to_kicad file"),
'type' => MENU_CALLBACK,
);
@@ -148,6 +130,29 @@ function pspice_to_kicad_menu()
return $items;
}
+function pspice_to_kicad_permission()
+{
+ return array(
+ "access pspice_to_kicad" => array(
+ "title" => t("Access pspice_to_kicad"),
+ "description" => t("Allows users to view converted."),
+ ),
+ "manage pspice_to_kicad" => array(
+ "title" => t("Upload pspice_to_kicad Files"),
+ "description" => t("Allows users to upload files for pspice to kicad convertor."),
+ ),
+ "convert pspice_to_kicad" => array(
+ "title" => t("Files to be converted"),
+ "description" => t("Allows admin to see files to be convert from pspice to kicad."),
+ ),
+ "delete pspice_to_kicad file" => array(
+ "title" => t("Files to be deleted"),
+ "description" => t("Allows admin to delete files from pspice to kicad."),
+ ),
+
+ );
+}
+
function pspice_to_kicad_check_valid_filename($file_name)
{
if (preg_match("/\\s/", $file_name)) {