You are here

function linkit_profile_field_load_all in Linkit 7.3

Load all Linkit profiles that is for fields.

Return value

An array with LinkitProfile objects.

1 call to linkit_profile_field_load_all()
linkit_form_field_ui_field_edit_form_alter in ./linkit.field.inc
Implements hook_form_FIELD_UI_FIELD_EDIT_FORM_alter().

File

./linkit.module, line 164
Main file for Linkit module.

Code

function linkit_profile_field_load_all() {
  $profiles = linkit_profile_load_all();
  foreach ($profiles as &$profile) {
    if ($profile->profile_type != LINKIT_PROFILE_TYPE_FIELD) {
      $profile = FALSE;
    }
  }
  return array_filter($profiles);
}