Actions

Developer Area/Plugin migration between Mahara 1.3 and 1.4: Difference between revisions

From Mahara Wiki

< Developer Area
No edit summary
No edit summary
Line 5: Line 5:
!Mahara 1.4
!Mahara 1.4
|-
|-
|blocktype/externalfeed
|blocktype
/externalfeed


|lib.php
|lib.php
Line 17: Line 18:
     }
     }
|-
|-
|blocktype/externalvideo
|blocktype
/externalvideo


|lib.php
|lib.php
Line 29: Line 31:
     }
     }
|-
|-
|artefact/plans
|artefact
/plans
|lib.php
|lib.php
|
|
Line 46: Line 49:
         return array(
         return array(
             'content/plans' => array(
             'content/plans' => array(
                 'path' => 'content/plans',
                 'path' => ''''content'''/plans',
                 'url'  => 'artefact/plans/',
                 'url'  => 'artefact/plans/',
                 'title' => get_string(''''Plans'''', 'artefact.plans'),
                 'title' => get_string(''''Plans'''', 'artefact.plans'),

Revision as of 08:15, 23 Mayıs 2011

Plugin File Mahara 1.3 Mahara 1.4
blocktype

/externalfeed

lib.php
   public static function get_categories() {
       return array('feeds');
   }
   public static function get_categories() {
       return array('external');
   }
blocktype

/externalvideo

lib.php
   public static function get_categories() {
       return array('fileimagevideo');
   }
   public static function get_categories() {
       return array('external');
   }
artefact

/plans

lib.php
   public static function menu_items() {
       return array(
           array(
               'path' => 'myportfolio/plans',
               'url'  => 'artefact/plans/',
               'title' => get_string('myplans', 'artefact.plans'),
               'weight' => 40,
           ),
       );
   }
   public static function menu_items() {
       return array(
           'content/plans' => array(
               'path' => 'content/plans',
               'url'  => 'artefact/plans/',
               'title' => get_string('Plans', 'artefact.plans'),
               'weight' => 60,
           ),
       );
   }