Profile

Cover photo
Michael Carper
Works at DataSphere
Attended University of Southern California
Lives in Bellevue WA
74 followers|2,292 views
AboutPostsPhotosYouTube

Stream

Michael Carper

commented on a video on YouTube.
Shared publicly  - 
 
Couple of additional tips:
https://drupal.org/project/advagg/ - CSS/JS
https://groups.drupal.org/node/415883 - Fixes for MySQL Deadlocks in D7
1
Talking Drupal's profile photo
 
Thanks for the extra tips.
Add a comment...

Michael Carper

Shared publicly  - 
1
2
Glen White's profile photoLee Adams's profile photoDustin Silva's profile photo
2 comments
 
Haha too cool!!
Add a comment...

Michael Carper

Shared publicly  - 
1
Chuck Skoda's profile photo
 
Hilarious, they've got pretty good timing!
Add a comment...

Michael Carper

Shared publicly  - 
 
Drupal 7 Tip of the week:

hook form altering the node form. When hiding all of the options available in the vertical tabs section adding this bit of code to the end will hide the vertical tabs section if there are none to display.


// Hide Authoring information.
// Hide Publishing options.
$form['author']['name'][' #access '] = FALSE;
$form['author']['date'][' #access '] = FALSE;
$form['options'][' #access '] = FALSE;
$form['options']['status'][' #access '] = FALSE;

// Add inline JS to remove the Authoring information and Publishing options
// vertical tabs.
$hide_tabs = '
<script type="text/javascript">
<!--//--><![CDATA[//><!--' . "
(function ($) {
$(document).ready(function() {
jQuery('.vertical-tab-button strong:contains(Authoring information)').parents('li').hide();
jQuery('.vertical-tab-button strong:contains(Publishing options)').parents('li').hide();
jQuery(' #edit -status').parents('fieldset').hide();
jQuery(' #edit -name').parents('fieldset').hide();
});
}(jQuery));
//--><!]]>
</script>";
$form['my_alterforms_js'] = array(
' #type ' => 'markup',
' #markup ' => $hide_tabs,
);
}

// Remove vertical tabs if there is nothing to display.
$fix_vertical_tabs = '
<script type="text/javascript">
<!--//--><![CDATA[//><!--' . "
(function ($) {
$(document).ready(function() {
jQuery('.vertical-tabs-list').each(function() {
if ($(this).children('li:visible').length == 0) {
$(this).parent('.vertical-tabs').hide();
}
});
});
}(jQuery));
//--><!]]>
</script>";
$form['my_fix_vertical_tabs'] = array(
' #type ' => 'markup',
' #markup ' => $fix_vertical_tabs,
);
1
Add a comment...
In his circles
97 people
Have him in circles
74 people
Glen White's profile photo
Regis Anclades's profile photo
Lee Adams's profile photo
John Jung's profile photo
Adrienne Aasen's profile photo

Michael Carper

Shared publicly  - 
1
Add a comment...

Michael Carper

Shared publicly  - 
1
Glen White's profile photoDustin Silva's profile photo
2 comments
 
Sweet!
Add a comment...
People
In his circles
97 people
Have him in circles
74 people
Glen White's profile photo
Regis Anclades's profile photo
Lee Adams's profile photo
John Jung's profile photo
Adrienne Aasen's profile photo
Work
Occupation
Computer Programmer
Skills
Web Preformance
Employment
  • DataSphere
    Software Design Engineer, 2009 - present
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Bellevue WA
Previously
Mercer Island WA - Los Angeles CA
Story
Tagline
Drupal Dev
Introduction
Day job is Drupal. Freetime I like to go surfing & snow skiing.
Education
  • University of Southern California
    ISE, 2002 - 2007
Basic Information
Gender
Male
Looking for
Friends, Networking
Relationship
Married
Other names
mikeytown2