You are here

function theme_conditional_fields_manage_marker in Conditional Fields 6

Same name and namespace in other branches
  1. 6.2 conditional_fields.module \theme_conditional_fields_manage_marker()

Themes a conditional field marker in 'Manage fields'.

1 theme call to theme_conditional_fields_manage_marker()
conditional_fields_field_overview_form in ./conditional_fields.module
Find conditional fields and mark them.

File

./conditional_fields.module, line 1165
Content fields and groups visibility based on the values of user defined 'trigger' fields.

Code

function theme_conditional_fields_manage_marker($controlling = NULL, $controlled = NULL) {
  $output = '';
  if ($controlling) {
    $output .= t('<div class="description">Controlled by <em>@controlling</em></div>', array(
      '@controlling' => $controlling,
    ));
  }
  if ($controlled) {
    $output .= t('<div class="description">Controlling <em>@controlled</em></div>', array(
      '@controlled' => $controlled,
    ));
  }
  return $output;
}