function widgets_definition_template_syntax in Widgets 7
1 call to widgets_definition_template_syntax()
- widgets_definition_edit_form in ./
widgets.admin.inc - Form builder; Form for adding a new widget set.
File
- ./
widgets.admin.inc, line 867 - Administration pages for widget settings.
Code
function widgets_definition_template_syntax() {
$str = t('Tokens can be used. For a list of available tokens, !token_link.', array(
'!token_link' => l(t('see the token list'), 'admin/help/token'),
));
$str .= ' ' . t('To add variables that adminitrators can change using the widget edit form, use the syntax <code>[?variable name=default value?]</code>.');
$str .= ' ' . t('Variable names are used as the field lables in the widget edit form and can contain spaces. They can be grouped into fieldsets using the syntax <code>fieldset:variable name</code>.');
$str .= ' ' . t('Default values can be tokens or literals. Spaces are permitted in default values.');
$str .= t('For more detailed help on building widget definitions, !link.', array(
'!link' => l(t('see this blog post'), 'http://www.leveltendesign.com/blog/tom/building-custom-widgets', array(
'attributes' => array(
'target' => '_blank',
),
)),
));
return $str;
}