echo '<input type="button" onclick="checknone()" value="'.get_string('deselectall').'" /> ';
echo '<br/><br/>';
echo '<select id="menuformaction" name="action">
- <option value="" selected="selected">With selected tags...</option>
+ <option value="" selected="selected">'. get_string('withselectedtags', 'tag') .'</option>
<option value="reset">'. get_string('resetflag', 'tag') .'</option>
<option value="delete">'. get_string('delete', 'tag') .'</option>
</select>';
require_once('lib.php');
define('PAGE_TAG_INDEX', 'tag-index');
+define('TAG_FORMAT', 'tag');
class page_tag extends page_base {
function user_allowed_editing() {
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
- return has_capability('moodle/tag:edit', $systemcontext);
+ return has_capability('moodle/tag:editblocks', $systemcontext);
}
}
function get_format_name() {
- return 'tag';
+
+ return TAG_FORMAT;
}
//----------- printing funtions -----------
page_map_class(PAGE_TAG_INDEX, 'page_tag');
+
?>