This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_field_attach_view_alter(). | |
* | |
* Hide label of display suite fields if field content is empty. | |
*/ | |
function cof_directory_field_attach_view_alter(&$output, $context) { | |
$displaySuiteFields = array("graduate_students","office_location"); | |
foreach ($output as $field_name => $field) { | |
if (!empty($field['#label_display'])) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://rawgit.com/maciej-gurban/responsive-bootstrap-toolkit/master/js/bootstrap-toolkit.min.js"></script> | |
<script> | |
function getCurrentVP(viewport) { | |
var currentViewport= 'n/a'; | |
if( viewport.is('xs') ) { | |
currentViewport = 'xs'; | |
} | |
else if( viewport.is('sm') ) { | |
currentViewport = 'sm'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function keyvalue_taxonomy_term_list($vocabMachineName){ | |
$tax = taxonomy_vocabulary_machine_name_load($vocabMachineName); | |
$termTree = taxonomy_get_tree($tax->vid); | |
$terms = array(); | |
foreach ($termTree as $idx => $term) { | |
$terms[str_replace($vocabMachineName.'/', '', drupal_lookup_path('alias', 'taxonomy/term/'.$term->tid, 'und'))] = $term->name; | |
} | |
return $terms; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The MACS: Mobile Anchor Capacity system app is provided as-is. The full license and EULA is included in the app. | |
For support inquiries please email web.osha <at> oregon.gov and include "MACS iOS support" in the subject line. |
OlderNewer