Commit c40d1173 authored by alexpott's avatar alexpott

Issue #2201693 followup by plopesc, Sweetchuck, rodrigoaguilera: Field output...

Issue #2201693 followup by plopesc, Sweetchuck, rodrigoaguilera: Field output supporting code should move out of field.module.
parent bee18ab1
......@@ -297,30 +297,6 @@ function _field_filter_xss_display_allowed_tags() {
return '<' . implode('> <', _field_filter_xss_allowed_tags()) . '>';
}
/**
* Implements hook_page_build().
*/
function field_page_build(&$page) {
$path = drupal_get_path('module', 'field');
$page['#attached']['css'][$path . '/css/field.module.css'] = array('every_page' => TRUE);
}
/**
* Implements hook_theme_suggestions_HOOK().
*/
function field_theme_suggestions_field(array $variables) {
$suggestions = array();
$element = $variables['element'];
$suggestions[] = 'field__' . $element['#field_type'];
$suggestions[] = 'field__' . $element['#field_name'];
$suggestions[] = 'field__' . $element['#entity_type'] . '__' . $element['#bundle'];
$suggestions[] = 'field__' . $element['#entity_type'] . '__' . $element['#field_name'];
$suggestions[] = 'field__' . $element['#entity_type'] . '__' . $element['#field_name'] . '__' . $element['#bundle'];
return $suggestions;
}
/**
* @} End of "defgroup field".
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment