Initial shot at write_pages widget
This commit is contained in:
12
include/page_widgets.php
Normal file
12
include/page_widgets.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
// A toolbar for observers with write_pages permissions
|
||||
function writepages_widget ($who,$which){
|
||||
return replace_macros(get_markup_template('write_pages.tpl'), array(
|
||||
'$new' => t('New Page'),
|
||||
'$newurl' => "webpages/$who",
|
||||
'$edit' => t('edit'),
|
||||
'$editurl' => "editwebpage/$who/$which"
|
||||
));
|
||||
}
|
||||
|
Reference in New Issue
Block a user