You are here

function colectomy_field_attach_view_alter in Colectomy 7

Implements hook_field_attach_view_alter().

Used to add the #post_render function to field render arrays.

File

./colectomy.module, line 63
Allows the option to hide the colon on field labels in field forms.

Code

function colectomy_field_attach_view_alter(&$output, $context) {
  foreach (element_children($output) as $key) {
    if (isset($output[$key]['#field_name'])) {
      $output[$key]['#post_render']['colectomy'] = 'colectomy_post_render';
    }
  }
}