You are here

function profile2_regpath_regpath_load_multiple in Profile2 Registration Path 7

Same name and namespace in other branches
  1. 7.2 profile2_regpath.module \profile2_regpath_regpath_load_multiple()

Implements 'load multiple' callback for regpath exportables.

3 calls to profile2_regpath_regpath_load_multiple()
profile2_regpath_attach_profile_fields in ./profile2_regpath.inc
profile2_regpath_form_alter in ./profile2_regpath.module
Implements hook_form_alter().
profile2_regpath_menu_alter in ./profile2_regpath.module
Implements hook_menu_alter().

File

./profile2_regpath.module, line 259
Attach profile2 form to registration form according to path.

Code

function profile2_regpath_regpath_load_multiple($conditions) {

  // Prevent "Call to undefined function ctools_include()" error
  module_load_include('module', 'ctools', 'ctools');
  ctools_include('export');
  $results = ctools_export_load_object('profile2_regpath', 'conditions', $conditions);
  return array_filter($results);
}