You are here

function _linkit_picker_set_active_profile in Linkit Picker 7.3

Set the active profile if it's not set.

3 calls to _linkit_picker_set_active_profile()
linkit_picker_handler_field_node_info::query in includes/linkit_picker_handler_field_node_info.inc
Called to add the field to a query.
linkit_picker_handler_field_term_info::query in includes/linkit_picker_handler_field_term_info.inc
Called to add the field to a query.
linkit_picker_handler_field_user_info::query in includes/linkit_picker_handler_field_user_info.inc
Called to add the field to a query.

File

./linkit_picker.module, line 147
Main file for linkit_pikcer module.

Code

function _linkit_picker_set_active_profile() {
  if (!linkit_get_active_profile()) {
    $profile = linkit_profile_load(arg(2));
    if ($profile) {
      linkit_set_active_profile($profile);
    }
  }
}