You are here

function theme_form_complete_marker in Field Complete 7

@file Field Complete - Provides field-based completeness for any entity - themes.

3 theme calls to theme_form_complete_marker()
fc_field_multiple_value_form in ./fc.module
Returns HTML for an individual form element.
fc_form_element_label in ./fc.module
Modified form_element_label theme function.
fc_preprocess_field in ./fc.module
Theme preprocess function for theme_field() and field.tpl.php.

File

./fc.themes.inc, line 7
Field Complete - Provides field-based completeness for any entity - themes.

Code

function theme_form_complete_marker($variables) {

  // This is may (theoretically) be used in the installer, pre-database setup.
  $t = get_t();
  $attributes = array(
    'class' => 'form-entity-complete',
    'title' => $t(variable_get('fc_tooltip', 'This field can be left blank but adds to the completeness of this item.')),
  );
  return '<span' . drupal_attributes($attributes) . '>' . variable_get('fc_tooltip_icon', '&#8224;') . '</span>';
}