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
| [tooltip]:before { | |
| /* needed - do not touch */ | |
| content: attr(tooltip); | |
| position: absolute; | |
| opacity: 0; | |
| /* customizable */ | |
| transition: all 0.3s ease; | |
| padding: 10px; | |
| color: #000; |
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 custom_seven_form_article_node_form_alter(&$form, &$form_state, $form_id) { | |
| $form['field_section']['und']['#type'] = 'hidden'; | |
| $form['field_section']['und']['#value'] = 44; | |
| } |
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
| /** | |
| * Settings page - page callback function (left hook_menu out of gist). | |
| */ | |
| function custom_restricted_types() { | |
| $form['custom_restricted_types'] = array( | |
| '#type' => 'checkboxes', | |
| '#title' => 'Restricted Content Types', | |
| '#options' => node_type_get_names(), | |
| '#default_value' => variable_get('custom_restricted_types', array()), | |
| '#description' => 'Choose the content types to be restricted to all roles except those given the <strong><em>Access Nonprofit Issues Restricted Content</em></strong> permission. That permission can be set at <a href="/admin/people/permissions#module-custom">the permissions page.</a>' |
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
| //Hiding one field, based on the value of another boolean field. | |
| function education_abroad_preprocess_node(&$vars) { | |
| //cpr($vars); | |
| if ($vars['type'] == 'student_profile') { | |
| if ($vars['field_hide_scholarship_affiliati']['und'][0]['value'] == 1) { | |
| unset($vars['content']['field_scholarship_affiliation']); | |
| } | |
| } |
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
| /*Add a comma delimiter between terms in a term reference field*/ | |
| .node-type-course .field-name-field-semesters-offered- .field-items .field-item { | |
| display: inline-block; | |
| *display: inline; | |
| *zoom: 1; | |
| } | |
| .node-type-course .field-name-field-semesters-offered- .field-items .field-item:after { | |
| content: ",\0000a0"; | |
| } |
NewerOlder