Index: openacs-4/contrib/packages/portal/sql/postgresql/layout-package-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/portal/sql/postgresql/layout-package-create.sql,v
diff -u -r1.3 -r1.4
--- openacs-4/contrib/packages/portal/sql/postgresql/layout-package-create.sql	15 Jan 2004 02:58:52 -0000	1.3
+++ openacs-4/contrib/packages/portal/sql/postgresql/layout-package-create.sql	6 Jun 2004 02:29:10 -0000	1.4
@@ -23,7 +23,7 @@
 -- @version $Id$
 --
 
-select define_function_args('portal_layout__new', 'layout_id,name,description,filename,resource_dir,object_type;portal_layout,creation_date,creation_user,creation_ip,context_id');
+select define_function_args('portal_layout__new', 'p_layout_id,p_name,p_description,p_filename,p_object_type;portal_layout,p_creation_date,p_creation_user,p_creation_ip,p_context_id');
 
 create or replace function portal_layout__new (integer,varchar,varchar,varchar,varchar,varchar,timestamptz,integer,varchar,integer)
 returns integer as '
@@ -32,7 +32,6 @@
     p_name                          alias for $2;
     p_description                   alias for $3;  -- default null
     p_filename                      alias for $4;
-    p_resource_dir                  alias for $5;
     p_object_type                   alias for $6;  -- default ''portal_layout''
     p_creation_date                 alias for $7;  -- default current_timestamp
     p_creation_user                 alias for $8;  -- default null
@@ -56,15 +55,15 @@
     );
 
     insert into portal_layouts
-    (layout_id, name, description, filename, resource_dir)
+    (layout_id, name, description, filename)
     values
-    (v_layout_id, p_name, p_description, p_filename, p_resource_dir);
+    (v_layout_id, p_name, p_description, p_filename);
 
     return v_layout_id;
 
 end;' language 'plpgsql';
 
-select define_function_args('portal_layout__add_region', 'layout_id,region');
+select define_function_args('portal_layout__add_region', 'p_layout_id,p_region');
 
 create or replace function portal_layout__add_region(integer,varchar)
 returns integer as '
@@ -81,7 +80,7 @@
 end;' language 'plpgsql';
 
 
-select define_function_args('portal_layout__del', 'layout_id');
+select define_function_args('portal_layout__del', 'p_layout_id');
 
 create or replace function portal_layout__del(integer)
 returns integer as '
