You are here

function theme_conditional_fields_manage_marker in Conditional Fields 6.2

Same name and namespace in other branches
  1. 6 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 1487
Content fields and groups visibility based on the values of user defined 'trigger' fields.

Code

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