function linkit_profile_editor_load_all in Linkit 7.3
Load all Linkit profiles that is for editors.
Return value
An array with LinkitProfile objects.
3 calls to linkit_profile_editor_load_all()
- linkit_dashboard_form in ./
linkit.module - Create the dashboard page.
- linkit_pre_render_editor_element in ./
linkit.module - Add Linkit settings to pages where we have an editor element.
- linkit_profile_load_by_format in ./
linkit.module - Load the first profile assigned to a text format.
File
- ./
linkit.module, line 180 - Main file for Linkit module.
Code
function linkit_profile_editor_load_all() {
$profiles = linkit_profile_load_all();
foreach ($profiles as &$profile) {
if ($profile->profile_type != LINKIT_PROFILE_TYPE_EDITOR) {
$profile = FALSE;
}
}
return array_filter($profiles);
}