You are here

function theme_formfactors_select in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.2

Same name and namespace in other branches
  1. 7 plugins/export_ui/sexybookmarks_profiles.inc \theme_formfactors_select()
1 theme call to theme_formfactors_select()
sexybookmarks_profiles_export_ui_form in plugins/export_ui/sexybookmarks_profiles.inc
SexyBookmarks profiles settings form.

File

plugins/export_ui/sexybookmarks_profiles.inc, line 389

Code

function theme_formfactors_select($variables) {
  $form_element = $variables['form_element'];
  $default = $form_element['#default_value'];
  $checked1 = 'checked="checked"';
  $checked2 = 'checked="checked"';
  if ($default == 2) {
    $checked1 = '';
  }
  else {
    $checked2 = '';
  }
  return '<div class="form-item form-type-radios form-item-config-changethis" style="margin-top: 100px;">
 <div class="form-radios" id="edit-config-changethis"><div class="form-item form-type-radio form-item-config-changethis">
 <input type="radio" class="form-radio"' . $checked1 . ' value="1" name="config[changethis]" id="edit-config-changethis-1">  <label for="edit-config-changethis-1" class="option">Sexybookmarks </label>

</div>
<div class="form-item form-type-radio form-item-config-changethis" style="margin-left: 50px;">
 <input type="radio" class="form-radio"' . $checked2 . ' value="2" name="config[changethis]" id="edit-config-changethis-2">  <label for="edit-config-changethis-2" class="option">Classic Bookmarks </label>

</div>
</div>
</div>';
}