You are here

function uif_plus_uif_help in User Import Framework Plus 7

Implements hook_uif_help().

File

./uif_plus.module, line 11
Advanced user import from a CSV file.

Code

function uif_plus_uif_help() {
  $uif_plus_help = '<p><strong>' . t('User Import Framework Plus adds support for the following:') . '</strong></p>';
  $items[] = t('picture (optional) - the user\'s picture.');
  if (module_exists('og')) {
    $items[] = t('groups (optional) - groups user is a member of as delimited text, e.g. "group1|group2" or group ids e.g. "23|427" (without quotes)');
  }
  $supported_fields = uif_get_supported_fields();
  foreach (uif_plus_profile2_fields() as $name => $data) {
    $field_type = uif_lookup_field_type($name);
    if (uif_is_supported_field($field_type)) {
      $subs = array(
        '@name' => $name,
        '@required' => $data['required'] ? t('required') : t('optional'),
        '%label' => $data['label'],
        '%type' => $field_type,
        '@description' => $data['description'] ? $data['description'] : uif_isset_or($supported_fields[$field_type]['description']),
      );
      $items[] = t('@name (@required) - @description (type is %type, human name is %label)', $subs);
    }
  }
  $uif_plus_help .= theme('item_list', array(
    'items' => $items,
  ));
  return $uif_plus_help;
}