You are here

function _linkit_get_profile_names in Linkit 7.2

Get all Linkit profiles and return there names.

Return value

An array that can be used as an #options in a form.

File

./linkit.module, line 849
Main file for linkit module.

Code

function _linkit_get_profile_names() {
  $profiles = linkit_profile_load_all();
  $profile_names = array();
  foreach ($profiles as $profile) {
    $profile_names[$profile->name] = $profile->admin_title;
  }
  return $profile_names;
}