You are here

function linkit_profile_menu_load_all in Linkit 7.3

Load all Linkit profiles that is for menu links.

Return value

An array with LinkitProfile objects.

1 call to linkit_profile_menu_load_all()
linkit_form_menu_edit_item_alter in ./linkit.module
Implements hook_form_FORM_ID_alter() for "menu_edit_item".

File

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

Code

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