-- -- content_template__get_root_folder/0 -- create or replace function content_template__get_root_folder( ) returns int4 as $$ declare v_folder_id integer; begin select c_root_folder_id from content_template_globals into v_folder_id; return v_folder_id; end;$$ language plpgsql;