Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
protitude committed May 1, 2024
0 parents commit 68a9ff7
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
13 changes: 13 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: (M) Create Release
on:
workflow_dispatch:
inputs:
version:
description: 'Tag next major/minor release. Use 1.x.x scheme. Leave default iterate to auto tag the next patch version.'
required: true
default: 'iterate'
permissions:
contents: write
jobs:
release:
uses: UCBoulder/oitid_reusable_actions/.github/workflows/releases.yml@main
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: (A) Tests
on:
push:
branches:
- '*'
jobs:
deploy:
uses: UCBoulder/oitid_reusable_actions/.github/workflows/testing.yml@v1
secrets:
phpstan_level: "0"
ralphie_token: ${{ secrets.RALPHIE_TOKEN }}
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "oit/oda",
"type": "drupal-custom-module",
"description": "Customizations for Data & Analytics domain of site.",
"keywords": ["Drupal"],
"license": "GPL-2.0-or-later",
"homepage": "https://github.com/UCBoulder/oda",
"minimum-stability": "dev"
}
7 changes: 7 additions & 0 deletions oda.info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: 'ODA'
type: module
description: 'Customizations for Data & Analytics domain of site.'
dependencies:
- drupal:block

core_version_requirement: ^10
21 changes: 21 additions & 0 deletions oda.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

/**
* @file
* Module containing custom oda code.
*/


/**
* Implements hook_form_alter().
*/
function oit_form_alter(&$form, FormStateInterface $form_state, $form_id) {
// Still need to add hook for page node and oda page type.
foreach ($form['menu']['link']['menu_parent']['#options'] as $key => $value) {
if ($value == '<ODA Main Menu>') {
break;
} else {
unset($form['menu']['link']['menu_parent']['#options'][$key]);
}
}
}

0 comments on commit 68a9ff7

Please sign in to comment.