Skip to content

Commit

Permalink
MDL-21695 Replaced help/blog
Browse files Browse the repository at this point in the history
AMOS BEGIN
 HLP blog/deleteblogassociations.html,[deleteblogassociations_help,core_blog]
 HLP blog/description.html,[description_help,core_blog]
 HLP blog/filtertags.html,[filtertags_help,core_blog]
 HLP blog/name.html,[name_help,core_blog]
 HLP blog/publish_state.html,[publishto_help,core_blog]
 HLP blog/tags.html,[autotags_help,core_blog]
 HLP blog/url.html,[url_help,core_blog]
AMOS END
  • Loading branch information
mudrd8mz committed Jul 19, 2010
1 parent 061e00a commit 2650f44
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 45 deletions.
2 changes: 1 addition & 1 deletion blog/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function definition() {
}

$mform->addElement('select', 'publishstate', get_string('publishto', 'blog'), $publishstates);
$mform->setHelpButton('publishstate', array('publish_state', get_string('publishto', 'blog'), 'blog'));
$mform->addHelpButton('publishstate', 'publishto', 'blog');
$mform->setDefault('publishstate', 0);

if (!empty($CFG->usetags)) {
Expand Down
16 changes: 8 additions & 8 deletions blog/external_blog_edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ public function definition() {

$mform =& $this->_form;

$mform->addElement('text', 'url', get_string('url'), array('size' => 50));
$mform->addElement('text', 'url', get_string('url', 'blog'), array('size' => 50));
$mform->addRule('url', get_string('emptyurl', 'blog'), 'required', null, 'client');
$mform->setHelpButton('url', array('url', get_string('url', 'blog'), 'blog'));
$mform->addHelpButton('url', 'url', 'blog');

$mform->addElement('text', 'name', get_string('name'));
$mform->setHelpButton('name', array('name', get_string('name', 'blog'), 'blog'));
$mform->addElement('text', 'name', get_string('name', 'blog'));
$mform->addHelpButton('name', 'name', 'blog');

$mform->addElement('textarea', 'description', get_string('description'), array('cols' => 50, 'rows' => 7));
$mform->setHelpButton('description', array('description', get_string('description', 'blog'), 'blog'));
$mform->addElement('textarea', 'description', get_string('description', 'blog'), array('cols' => 50, 'rows' => 7));
$mform->addHelpButton('description', 'description', 'blog');

if (!empty($CFG->usetags)) {
$mform->addElement('text', 'filtertags', get_string('filtertags', 'blog'), array('size' => 50));
$mform->setHelpButton('filtertags', array('filtertags', get_string('filtertags', 'blog'), 'blog'));
$mform->addHelpButton('filtertags', 'filtertags', 'blog');
$mform->addElement('text', 'autotags', get_string('autotags', 'blog'), array('size' => 50));
$mform->setHelpButton('autotags', array('autotags', get_string('autotags', 'blog'), 'blog'));
$mform->addHelpButton('autotags', 'autotags', 'blog');
}

$this->add_action_buttons();
Expand Down
2 changes: 1 addition & 1 deletion course/reset_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function definition (){
$mform->addElement('checkbox', 'reset_logs', get_string('deletelogs'));
$mform->addElement('checkbox', 'reset_notes', get_string('deletenotes', 'notes'));
$mform->addElement('checkbox', 'delete_blog_associations', get_string('deleteblogassociations', 'blog'));
$mform->setHelpButton('delete_blog_associations', array('deleteblogassociations', get_string('deleteblogassociations', 'blog'), 'blog'));
$mform->addHelpButton('delete_blog_associations', 'deleteblogassociations', 'blog');


$mform->addElement('header', 'rolesheader', get_string('roles'));
Expand Down
9 changes: 5 additions & 4 deletions lang/en/blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Strings for component 'blog', language 'en', branch 'MOODLE_20_STABLE'
* Strings for core subsystem 'blog'
*
* @package blog
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @package core
* @subpackage blog
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$string['addnewentry'] = 'Add a new entry';
Expand Down
2 changes: 0 additions & 2 deletions lang/en/help/blog/deleteblogassociations.html

This file was deleted.

4 changes: 0 additions & 4 deletions lang/en/help/blog/description.html

This file was deleted.

3 changes: 0 additions & 3 deletions lang/en/help/blog/filtertags.html

This file was deleted.

3 changes: 0 additions & 3 deletions lang/en/help/blog/name.html

This file was deleted.

9 changes: 0 additions & 9 deletions lang/en/help/blog/publish_state.html

This file was deleted.

5 changes: 0 additions & 5 deletions lang/en/help/blog/tags.html

This file was deleted.

5 changes: 0 additions & 5 deletions lang/en/help/blog/url.html

This file was deleted.

0 comments on commit 2650f44

Please sign in to comment.