Skip to content
Permalink
Browse files

portfolio & data MDL-21032 add leap2a to database module

This commit changes drastically the previous portfolio api support in
mod/data to get rid of csv etc and add leap2a, refactor and tidy up a
lot.
  • Loading branch information...
Penny Leach
Penny Leach committed May 2, 2010
1 parent 11fbe3f commit c3e1b5bd5a46b8fdae1e90becea041f153a9956f
Showing with 215 additions and 117 deletions.
  1. +1 −0 mod/data/lang/en/data.php
  2. +1 −1 mod/data/lib.php
  3. +203 −116 mod/data/locallib.php
  4. +10 −0 mod/data/view.php
@@ -127,6 +127,7 @@
$string['exportaszip_help'] = 'The export as zip feature allows you to save the templates and fields as a preset zip for download. The zip may then be imported to another course.';
$string['exportdatabaserecords'] = 'Export Database records';
$string['exportedtozip'] = 'Exported to temporary zip...';
$string['exportownentries'] = 'Export your own entries only? ({$a->mine}/{$a->all})';
$string['failedpresetdelete'] = 'Error deleting a preset!';
$string['fieldadded'] = 'Field added';
$string['fieldallowautolink'] = 'Allow autolink';
@@ -1254,7 +1254,7 @@ function data_print_template($template, $records, $data, $search='', $page=0, $r
$patterns[]='##export##';
if (($template == 'singletemplate' || $template == 'listtemplate')
if ($CFG->enableportfolios && ($template == 'singletemplate' || $template == 'listtemplate')
&& ((has_capability('mod/data:exportentry', $context)
|| (data_isowner($record->id) && has_capability('mod/data:exportownentry', $context))))) {
require_once($CFG->libdir . '/portfoliolib.php');
Oops, something went wrong.

0 comments on commit c3e1b5b

Please sign in to comment.
You can’t perform that action at this time.