Skip to content

Instantly share code, notes, and snippets.

View crittermike's full-sized avatar

Mike Crittenden crittermike

View GitHub Profile
wc -l **/*
18 CHANGELOG.txt
870 custom_breadcrumbs.admin.inc
wc: custom_breadcrumbsapi: Is a directory
0 custom_breadcrumbsapi
15 custom_breadcrumbsapi/custom_breadcrumbsapi.info
75 custom_breadcrumbsapi/custom_breadcrumbsapi.install
195 custom_breadcrumbsapi/custom_breadcrumbsapi.module
209 custom_breadcrumbs_common.inc
wc: custom_breadcrumbs_identifiers: Is a directory
wc -l **/*
wc: domain: Is a directory
0 domain
14 domain/hansel_domain.info
89 domain/hansel_domain.module
wc: export: Is a directory
0 export
12 export/hansel_export.info
343 export/hansel_export.module
wc: forum: Is a directory
0 admin
249 admin/crumbs.admin.inc
160 admin/crumbs.debug.inc
105 admin/crumbs.entity_parent.inc
55 admin/crumbs.expansible.inc
29 admin/crumbs.tabledrag.inc
14 admin/crumbs.textual.inc
144 crumbs.api.php
13 crumbs.info
67 crumbs.install
<?php
// Build the breadcrumbs in the format Home > News > Title Of Post
$breadcrumb = array();
$breadcrumb[] = l(t('Home'), '<front>');
$breadcrumb[] = l(t('News'), 'news');
$breadcrumb[] = l(drupal_get_title(), base_path() . request_uri()); // Link to current URL
// Set the breadcrumbs
drupal_set_breadcrumb($breadcrumb);
12 function gaggle_preprocess_page(&$vars){
11 $search_form = drupal_get_form('search_form');
10 $search_box = drupal_render($search_form);
9 $vars['search_box'] = $search_box;
8 }
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
<?php
/**
* @file
* Features hooks for the uuid_fpp features component.
*/
/**
* Implements hook_features_export_options().
*/
function uuid_fpp_features_export_options() {
function mymodule_menu() {
$items['redirect/stats'] = array(
'page callback' => 'drupal_goto',
'page arguments' => array('stats'),
'type' => MENU_NORMAL_ITEM,
'menu_name' => 'main_menu' // Not sure if this is the right name
);
$items['redirect/tickets'] = array(
'page callback' => 'drupal_goto',
'page arguments' => array('tickets'),
<?php
/**
* Implements hook_menu_alter.
*/
function MODULENAME_menu_alter(&$items) {
$items['admin/config/mini-panels-ipe/%']['theme callback'] = 'MODULENAME_get_default_theme';
}
function MODULENAME_get_default_theme() {
return variable_get('theme_default', '0');
diff --git a/etowah_content_stream.module b/etowah_content_stream.module
index 0608746..5775e0d 100644
--- a/etowah_content_stream.module
+++ b/etowah_content_stream.module
@@ -182,7 +182,7 @@ function etowah_content_stream_ctools_plugin_api($module, $api) {
function etowah_content_stream_theme($existing, $type, $theme, $path) {
return array(
'content_stream' => array(
- 'variables' => array('nodes' => NULL, 'presented_by' => NULL, 'social' => NULL),
+ 'variables' => array('overrides' => NULL, 'nodes' => NULL, 'presented_by' => NULL, 'social' => NULL),