function linkit_attribute_plugin_target in Linkit 7.3
Create a FAPI element.
Parameters
array $plugin: This is the plugin definition.
array $settings: An array of settings for this attribute. This is from the profile settings.
Return value
An FAPI element.
See also
LinkitProfile::setAttributes()
1 string reference to 'linkit_attribute_plugin_target'
- target.inc in plugins/
linkit_attribute/ target.inc
File
- plugins/
linkit_attribute/ target.inc, line 26
Code
function linkit_attribute_plugin_target($plugin, $settings = array()) {
return array(
'#type' => 'select',
'#title' => $plugin['name'],
'#options' => array(
'' => '',
'_blank' => t('New window (_blank)'),
'_top' => t('Top window (_top)'),
'_self' => t('Same window (_self)'),
'_parent' => t('Parent window (_parent)'),
),
'#weight' => isset($settings['weight']) ? $settings['weight'] : 0,
);
}