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
config.removePlugins = 'elementspath'; | |
config.resize_enabled = false; | |
config.height = 30; |
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 | |
/** | |
* Implements hook_element_info_alter(). | |
* | |
* Sets the text format processor to a custom callback function. | |
* This code is taken from the Better Formats module. | |
*/ | |
function bluecollar_helper_element_info_alter(&$type) { | |
if (isset($type['text_format']['#process'])) { | |
foreach ($type['text_format']['#process'] as &$callback) { |
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 module_form_course_node_form_submit($form, &$form_state) { | |
$form_state['redirect'] = array( | |
'node/'. $form_state['nid']. '/edit', | |
array( | |
'query' => array( | |
'cmd' => $cmd, | |
), | |
), |
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 | |
$node_types = array(); | |
foreach (node_type_get_types() as $type => $item) { | |
$node_types[$type] = $item->name; | |
} | |
$form['type'] = array( | |
'#type' => 'select', | |
'#title' => t('Content Type'), | |
'#options' => $node_types, |
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
# Ignore paths that contain user-generated content. | |
/sites/*/files | |
/sites/*/private | |
/files/* | |
/cache | |
# ** Only works in OSs that support newer versions of fnmatch (Bash 4+) | |
/sites/default/**/files | |
/sites/default/**/private | |
/sites/default/settings.php |
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
Which is not valid PHP code? | |
(5 scores) | |
$10_somethings | |
$_10 | |
${"MyVar"} | |
$aVaR | |
(Number of correct answers: 1) |
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 | |
$wrapper_classes = array(); | |
$item = menu_get_item(); | |
if ($item['path'] == 'blog' ||$item['path'] == 'taxonomy/term/%' || $item['path'] == 'posts-date/%') { | |
$wrapper_classes[] = 'blog'; | |
} | |
if (isset($vars['node']) && $vars['node']->type == 'article') { | |
$wrapper_classes[] = 'blog-single'; | |
} | |
?> |
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
@media (min-width: 768px){ | |
#primary-menu-bar .menu-wrapper{ | |
float:none; | |
margin: 0 auto; | |
display: table; | |
table-layout: fixed; | |
} | |
} |
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
@media (min-width: 768px){ | |
#primary-menu-bar .menu-wrapper{ | |
float:none; | |
margin: 0 auto; | |
display: table; | |
table-layout: fixed; | |
} | |
} |
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
@media (min-width: 768px){ | |
#primary-menu-bar .menu-wrapper{ | |
float:none; | |
margin: 0 auto; | |
display: table; | |
table-layout: fixed; | |
} | |
} |