This file contains 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
<?php | |
/** | |
* @file | |
* dc_pages.features.content.inc | |
*/ | |
/** | |
* Implements hook_content_defaults(). | |
*/ | |
function dc_pages_content_defaults() { |
This file contains 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
name = "dc_pages" | |
description = "page content" | |
core = "7.x" | |
package = "Features" | |
version = "7.x-1.0" | |
project = "dc_pages" | |
features[content][] = "page:academics" | |
features[content][] = "page:academics/eap-credit" | |
features[content][] = "page:academics/grades" | |
features[content][] = "page:academics/graduting-senioers" |
This file contains 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
<?php | |
/** | |
* @file | |
*/ | |
// Drupal needs this blank file. |
This file contains 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
<?php | |
function dc_pages_enable() { | |
variable_set('pathauto_node_page_pattern' ,'[node:menu-link:parent:url:path]/[node:title]'); | |
} |
This file contains 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
<?php | |
# @author webdev@id.ucsb.edu | |
$entity_groups = entity_load('group', FALSE); | |
# | |
# The Group Entities were created in the order the D6 DomainAccess site had the | |
# subdomain id's stored in the database. We can simply iterate through the | |
# Entity list we get back and look for nodes in that DA/GID "id" value and |
This file contains 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
<?php | |
function courses_db_form_alter(&$form, $form_state, $form_id) { | |
if ($form['#id'] == 'views-exposed-form-catalog-listings-page' && $form_id == 'views_exposed_form') { | |
$max_comparator = function ($max) { | |
return function ($v) use ($max) { return (intval($v) > 0) ? $v < $max : TRUE; }; | |
}; | |
# this form value starts with "--Any--", we want to inlcude that always. | |
$form['field_coursedb_year_tid']['#options'] = |
This file contains 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
<?php | |
/** | |
* Implementation of hook_views_pre_render(). | |
*/ | |
function faculty_db_simple_views_pre_render(&$view) { | |
if ($view->name === 'faculty_rolodex' ) { | |
$index = array_merge(array('0-9'), array('all'), range('a','z')); | |
foreach ($index as $letter) { | |
$class = arg(1) == strtolower($letter) ? 'active' : ''; | |
$link = l(t($letter), arg(0).'/'.strtolower($letter)); |
This file contains 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
; dpg ::: http://drupal.org/user/1059226 | |
; Example Short Profile -- hides database configuration page. | |
; | |
; This bears mentioning more than once. See http://drupal.org/node/1153646 | |
name = Short Profile | |
description = A short profile, it removes DB settings page. | |
core = 7.x | |
dependencies[] = block |
This file contains 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
<?php | |
function views_fs_file_list_content() { | |
$page = array(); | |
$files = _views_fs_fetch_filelist(); | |
return $page; | |
} |
This file contains 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
#!/usr/bin/ruby | |
# wol.rb: sends out a magic packet to wake up your PC | |
# | |
# Copyright (c) 2004 zunda <zunda at freeshell.org> | |
# | |
# This program is free software. You can re-distribute and/or | |
# modify this program under the same terms of ruby itself --- | |
# Ruby Distribution License or GNU General Public License. | |
# |
OlderNewer