You are here

function oa_related_remove_paragraph_icon in Open Atrium Related Content 7.2

Change the remove paragraph button to an icon.

Parameters

array $element: The current element that contains the actions.

4 calls to oa_related_remove_paragraph_icon()
oa_related_preprocess_oa_related_paragraphs_paragraph_content_form in ./oa_related.theme.inc
Implements hook_preprocess_oa_related_paragraphs_paragraph_content_form().
oa_related_preprocess_oa_related_paragraphs_paragraph_media_form in ./oa_related.theme.inc
Implements hook_preprocess_oa_related_paragraphs_paragraph_media_form().
oa_related_preprocess_oa_related_paragraphs_paragraph_snippet_form in ./oa_related.theme.inc
Implements hook_preprocess_oa_related_paragraphs_paragraph_snippet_form().
oa_related_preprocess_oa_related_paragraphs_paragraph_text_form in ./oa_related.theme.inc
Implements hook_preprocess_oa_related_paragraphs_paragraph_text_form().

File

./oa_related.theme.inc, line 97
Theme and preprocess functions for related paragraph forms.

Code

function oa_related_remove_paragraph_icon(&$element) {
  $element['actions']['remove_button']['#attributes']['class'][] = 'oa-related-trash';
  $element['actions']['remove_button']['#attributes']['title'][] = $element['actions']['remove_button']['#value'];
  $element['actions']['remove_button']['#value'] = decode_entities('');
}