Difference between revisions of "Developer Area/Plugin migration between Mahara 1.3 and 1.4"
From Mahara Wiki
< Developer Area
Line 1: | Line 1: | ||
{| border="1" | {| border="1" | ||
+ | !Plugin | ||
+ | !File | ||
!Mahara 1.3 | !Mahara 1.3 | ||
!Mahara 1.4 | !Mahara 1.4 | ||
|- | |- | ||
+ | | | ||
+ | |lib.php | ||
| | | | ||
Bread | Bread | ||
Line 8: | Line 12: | ||
Pie | Pie | ||
|- | |- | ||
+ | |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, | ||
+ | ), | ||
+ | ); | ||
+ | } | ||
|} | |} |
Revision as of 07:00, 23 May 2011
Plugin | File | Mahara 1.3 | Mahara 1.4 |
---|---|---|---|
lib.php |
Bread |
Pie | |
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, ), ); } |