2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
* Menu callback; presents general node configuration options.
*/
functionnode_configure(){
$status='<p>'.t('If the site is experiencing problems with permissions to content, you may have to rebuild the permissions cache. Possible causes for permission problems are disabling modules or configuration changes to permissions. Rebuilding will remove all privileges to posts, and replace them with permissions based on the current modules and settings.').'</p>';
$status.='<p>'.t('Rebuilding may take some time if there is a lot of content or complex permission settings. After rebuilding has completed posts will automatically use the new permissions.').'</p>';
'#description'=>t("The maximum number of characters used in the trimmed version of a post. Drupal will use this setting to determine at which offset long posts should be trimmed. The trimmed version of a post is typically used as a teaser when displaying the post on the main page, in XML feeds, etc. To disable teasers, set to 'Unlimited'.")
);
$form['node_preview']=array(
'#type'=>'radios',
'#title'=>t('Preview post'),
'#default_value'=>0,
'#options'=>array(t('Optional'),t('Required')),
'#description'=>t('Must users preview posts before submitting?'),
* Menu callback: confirm rebuilding of permissions.
*/
functionnode_configure_rebuild_confirm(){
returnconfirm_form(array(),t('Are you sure you want to rebuild the permissions on site content?'),
'admin/content/node-settings',t('This action rebuilds all permissions on site content, and may be a lengthy process. This action cannot be undone.'),t('Rebuild permissions'),t('Cancel'));
'admin/reports/status',t('This action rebuilds all permissions on site content, and may be a lengthy process. This action cannot be undone.'),t('Rebuild permissions'),t('Cancel'));