function _focal_point_indicator in Focal Point 7
Build a render array for the focal point indicator crosshair.
Parameters
string $indicator_id: (Optional) The id of the focal point indicator. This is needed to support image fields that have a cardinality greater than one, and forms in modals.
Return value
array A render array for the focal point indicator crosshair.
3 calls to _focal_point_indicator()
- focal_point_preprocess_image_widget in ./
focal_point.module - Implements template_preprocess_image_widget().
- focal_point_test_drive_form in ./
focal_point.admin.inc - Form builder for the "test drive" page.
- _focal_point_form_append_focal_point_preview in ./
focal_point.module - Append the focal point preview field to file edit forms.
File
- ./
focal_point.module, line 669
Code
function _focal_point_indicator($indicator_id = 'focal-point') {
$indicator = array(
'#theme_wrappers' => array(
'container',
),
'#attributes' => array(
'class' => array(
'focal-point-indicator',
),
'id' => $indicator_id,
),
'#markup' => '',
'#attached' => array(
'library' => array(
array(
'system',
'ui.draggable',
),
),
),
);
return $indicator;
}