function linkit_attribute_plugin_accesskey 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_accesskey'
- accesskey.inc in plugins/
linkit_attribute/ accesskey.inc
File
- plugins/
linkit_attribute/ accesskey.inc, line 26
Code
function linkit_attribute_plugin_accesskey($plugin, $settings = array()) {
return array(
'#type' => 'textfield',
'#title' => $plugin['name'],
'#maxlength' => 255,
'#size' => 40,
'#default_value' => '',
'#weight' => isset($settings['weight']) ? $settings['weight'] : 0,
);
}