function linkit_get_attributes in Linkit 7.2
Get all attributes defined by hook_linkit_attributes().
2 calls to linkit_get_attributes()
- linkit_get_profile_attributes in ./
linkit.module - Get all enabled attributes for the profiles used on the dashboard.
- _linkit_build_attribute_form_fields in plugins/
export_ui/ linkit_profiles.inc - Append attributes form element to the setttings form.
File
- ./
linkit.module, line 677 - Main file for linkit module.
Code
function linkit_get_attributes($profile = NULL) {
if (is_null($profile)) {
$profile = linkit_get_dashboard_profile();
}
// Let other modules implement thier own attributes.
$attributes = module_invoke_all('linkit_attributes', $profile);
// Let other modules alter the attributes.
drupal_alter('linkit_attributes', $attributes);
return $attributes;
}