Skip to content

Commit

Permalink
MDL-44120 block: tidied up block @Package uses
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Feb 15, 2014
1 parent 692d247 commit f25a683
Show file tree
Hide file tree
Showing 145 changed files with 743 additions and 261 deletions.
22 changes: 22 additions & 0 deletions blocks/activity_modules/block_activity_modules.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* This file contains the Activity modules block.
*
* @package block_activity_modules
* @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/filelib.php');
Expand Down
1 change: 0 additions & 1 deletion blocks/activity_modules/lang/en/block_activity_modules.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
Expand Down
3 changes: 1 addition & 2 deletions blocks/activity_modules/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Version details
*
* @package block
* @subpackage activity_modules
* @package block_activity_modules
* @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
4 changes: 1 addition & 3 deletions blocks/admin_bookmarks/block_admin_bookmarks.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@
/**
* Admin Bookmarks Block page.
*
* @package block
* @subpackage admin_bookmarks
* @package block_admin_bookmarks
* @copyright 2011 Moodle
* @author 2006 vinkmar
* 2011 Rossiani Wijaya (updated)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*
*/

/**
Expand Down
22 changes: 22 additions & 0 deletions blocks/admin_bookmarks/create.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Create admin bookmarks.
*
* @package block_admin_bookmarks
* @copyright 2006 vinkmar
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

require('../../config.php');

Expand Down
22 changes: 22 additions & 0 deletions blocks/admin_bookmarks/delete.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Delete admin bookmarks.
*
* @package block_admin_bookmarks
* @copyright 2006 vinkmar
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

require('../../config.php');

Expand Down
1 change: 0 additions & 1 deletion blocks/admin_bookmarks/lang/en/block_admin_bookmarks.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
Expand Down
3 changes: 1 addition & 2 deletions blocks/admin_bookmarks/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Version details
*
* @package block
* @subpackage admin_bookmarks
* @package block_admin_bookmarks
* @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
3 changes: 1 addition & 2 deletions blocks/badges/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* My latest badges block capabilities.
*
* @package core
* @subpackage badges
* @package block_badges
* @copyright 2012 onwards Totara Learning Solutions Ltd {@link http://www.totaralms.com/}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @author Yuliya Bozhko <[email protected]>
Expand Down
3 changes: 1 addition & 2 deletions blocks/blog_menu/block_blog_menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Blog Menu Block page.
*
* @package block
* @subpackage blog_menu
* @package block_blog_menu
* @copyright 2009 Nicolas Connault
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
3 changes: 1 addition & 2 deletions blocks/blog_menu/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Version details
*
* @package block
* @subpackage blog_menu
* @package block_blog_menu
* @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
7 changes: 3 additions & 4 deletions blocks/blog_recent/block_blog_recent.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
/**
* Recent Blog Entries Block page.
*
* @package block
* @subpackage blog_recent
* @copyright 2009 Nicolas Connault
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @package block_blog_recent
* @copyright 2009 Nicolas Connault
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();
Expand Down
3 changes: 2 additions & 1 deletion blocks/blog_recent/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
/**
* Form for editing tag block instances.
*
* @package moodlecore
* @package block_blog_recent
* @copyright 2009 Tim Hunt
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

/**
* Form for editing tag block instances.
*
* @package block_blog_recent
* @copyright 2009 Tim Hunt
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
3 changes: 1 addition & 2 deletions blocks/blog_recent/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Version details
*
* @package block
* @subpackage blog_recent
* @package block_blog_recent
* @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
3 changes: 1 addition & 2 deletions blocks/blog_tags/block_blog_tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Blog tags block.
*
* @package block
* @subpackage blog_tags
* @package block_blog_tags
* @copyright 2006 Shane Elliott
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
3 changes: 1 addition & 2 deletions blocks/blog_tags/edit_form.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
Expand All @@ -18,7 +17,7 @@
/**
* Form for editing Blog tags block instances.
*
* @package moodlecore
* @package block_blog_tags
* @copyright 2009 Tim Hunt
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
1 change: 0 additions & 1 deletion blocks/blog_tags/lang/en/block_blog_tags.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
Expand Down
3 changes: 1 addition & 2 deletions blocks/blog_tags/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Version details
*
* @package block
* @subpackage blog_tags
* @package block_blog_tags
* @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
1 change: 0 additions & 1 deletion blocks/calendar_month/lang/en/block_calendar_month.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
Expand Down
3 changes: 1 addition & 2 deletions blocks/calendar_month/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Version details
*
* @package block
* @subpackage calendar_moth
* @package block_calendar_month
* @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
Expand Down
3 changes: 1 addition & 2 deletions blocks/calendar_upcoming/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Version details
*
* @package block
* @subpackage calendar_upcoming
* @package block_calendar_upcoming
* @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
3 changes: 1 addition & 2 deletions blocks/comments/block_comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* The comments block
*
* @package block
* @subpackage comments
* @package block_comments
* @copyright 2009 Dongsheng Cai <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
3 changes: 1 addition & 2 deletions blocks/comments/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* The comments block helper functions and callbacks
*
* @package block
* @subpackage comments
* @package block_comments
* @copyright 2011 Dongsheng Cai <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
3 changes: 1 addition & 2 deletions blocks/comments/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Version details
*
* @package block
* @subpackage comments
* @package block_comments
* @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
6 changes: 2 additions & 4 deletions blocks/community/block_community.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?PHP

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
Expand All @@ -15,9 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/*
* @package blocks
* @subpackage community
/**
* @package block_community
* @author Jerome Mouneyrac <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com
Expand Down
13 changes: 6 additions & 7 deletions blocks/community/communitycourse.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/*
* @package blocks
* @subpackage community
* @author Jerome Mouneyrac <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com
*
/**
* This page display the community course search form.
* It also handles adding a course to the community block.
* It also handles downloading a course template.
*
* @package block_community
* @author Jerome Mouneyrac <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com
*/

require('../../config.php');
Expand Down
3 changes: 1 addition & 2 deletions blocks/community/db/upgrade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -33,7 +32,7 @@
* before any action that may take longer time to finish.
*
* @since 2.0
* @package blocks
* @package block_community
* @copyright 2010 Jerome Mouneyrac
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
10 changes: 4 additions & 6 deletions blocks/community/forms.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

///////////////////////////////////////////////////////////////////////////
// //
// This file is part of Moodle - http://moodle.org/ //
Expand All @@ -20,14 +19,13 @@
// //
///////////////////////////////////////////////////////////////////////////

/*
* @package blocks
* @subpackage community
/**
* Form for community search
*
* @package block_community
* @author Jerome Mouneyrac <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com
*
* Form for community search
*/

require_once($CFG->libdir . '/formslib.php');
Expand Down
1 change: 0 additions & 1 deletion blocks/community/lang/en/block_community.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
Expand Down
Loading

0 comments on commit f25a683

Please sign in to comment.