Skip to content

Commit

Permalink
chore: add comments
Browse files Browse the repository at this point in the history
Refs: sitreps
  • Loading branch information
lazysoundsystem committed Oct 8, 2024
1 parent a9267c4 commit 4603101
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 128 deletions.
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"drupal/core-composer-scaffold": "^10",
"drupal/core-project-message": "^10",
"drupal/core-recommended": "^10",
"drupal/csp": "^2.1",
"drupal/csv_serialization": "^4.0",
"drupal/dashboards": "^2.1",
"drupal/date_recur": "^3.2",
Expand All @@ -56,7 +55,6 @@
"drupal/field_group": "^3.2",
"drupal/flexible_permissions": "^1.0@beta",
"drupal/geofield": "^1.36",
"drupal/google_tag": "^2.0",
"drupal/group": "^2.0.0-rc1",
"drupal/imageapi_optimize_binaries": "^1.0@beta",
"drupal/imageapi_optimize_webp": "^2.0",
Expand Down
127 changes: 3 additions & 124 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion html/modules/custom/rwr_sitrep/rwr_sitrep.module
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ use Drupal\Core\Url;
/**
* Implements hook_menu_local_tasks_alter().
*
* Looking at menu local tasks.
* Remove or adjust 'Reports' local task for operations or clusters.
* If this is an operation, have the link lead to that operation's situation
* reports only.
* If this is a cluster, remove the link unless the cluster has the Situation
* Report tag, in which case change the label accordingly.
*
* @see rwr_sitrep.links.task.yml
*/
function rwr_sitrep_menu_local_tasks_alter(&$data, $route_name, RefinableCacheableDependencyInterface &$cacheability) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

/**
* Page controller for tabs.
*
* Most of this taken from https://github.com/UN-OCHA/dsr-site/blob/develop/
* html/modules/custom/dsr_custom/src/Controller/PdfController.php.
*/
class PdfController extends ControllerBase {

Expand Down
2 changes: 1 addition & 1 deletion html/translations/ar.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ msgstr "شاهد الكل"
msgid "Help"
msgstr "مساعدة"

msgid "SEARCH"
msgid "Search"
msgstr "البحث"

msgid "Add new Content"
Expand Down

0 comments on commit 4603101

Please sign in to comment.