$form['langcode']=array('#type'=>'textfield','#title'=>t('Language code'),'#default_value'=>$edit['langcode'],'#size'=>12,'#maxlength'=>60,'#description'=>t("Commonly this is an <a href=\"%iso-codes\">ISO 639 language code</a> with an optional country code for regional variants. Examples include 'en', 'en-US' and 'zh-cn'.",array('%iso-codes'=>'http://www.w3.org/WAI/ER/IG/ert/iso639.htm')));
$form['langname']=array('#type'=>'textfield','#title'=>t('Language name in English'),'#default_value'=>$edit['langname'],'#size'=>60,'#maxlength'=>64,'#description'=>t('Name of the language. Will be available for translation in all languages.'));
$form['langname']=array('#type'=>'textfield','#title'=>t('Language name in English'),'#default_value'=>$edit['langname'],'#maxlength'=>64,'#description'=>t('Name of the language. Will be available for translation in all languages.'));
@@ -679,8 +679,8 @@ function aggregator_form_feed($edit = array()) {
}
$form['title']=array('#type'=>'textfield','#title'=>t('Title'),'#default_value'=>$edit['title'],'#size'=>60,'#maxlength'=>64,'#description'=>t('The name of the feed; typically the name of the web site you syndicate content from.'));
$form['url']=array('#type'=>'textfield','#title'=>t('URL'),'#default_value'=>$edit['url'],'#size'=>60,'#maxlength'=>255,'#description'=>t('The fully-qualified URL of the feed.'));
$form['title']=array('#type'=>'textfield','#title'=>t('Title'),'#default_value'=>$edit['title'],'#maxlength'=>64,'#description'=>t('The name of the feed; typically the name of the web site you syndicate content from.'));
$form['url']=array('#type'=>'textfield','#title'=>t('URL'),'#default_value'=>$edit['url'],'#maxlength'=>255,'#description'=>t('The fully-qualified URL of the feed.'));
$form['refresh']=array('#type'=>'select','#title'=>t('Update interval'),'#default_value'=>$edit['refresh'],'#options'=>$period,'#description'=>t('The refresh interval indicating how often you want to update this feed. Requires crontab.'));
@@ -679,8 +679,8 @@ function aggregator_form_feed($edit = array()) {
}
$form['title']=array('#type'=>'textfield','#title'=>t('Title'),'#default_value'=>$edit['title'],'#size'=>60,'#maxlength'=>64,'#description'=>t('The name of the feed; typically the name of the web site you syndicate content from.'));
$form['url']=array('#type'=>'textfield','#title'=>t('URL'),'#default_value'=>$edit['url'],'#size'=>60,'#maxlength'=>255,'#description'=>t('The fully-qualified URL of the feed.'));
$form['title']=array('#type'=>'textfield','#title'=>t('Title'),'#default_value'=>$edit['title'],'#maxlength'=>64,'#description'=>t('The name of the feed; typically the name of the web site you syndicate content from.'));
$form['url']=array('#type'=>'textfield','#title'=>t('URL'),'#default_value'=>$edit['url'],'#maxlength'=>255,'#description'=>t('The fully-qualified URL of the feed.'));
$form['refresh']=array('#type'=>'select','#title'=>t('Update interval'),'#default_value'=>$edit['refresh'],'#options'=>$period,'#description'=>t('The refresh interval indicating how often you want to update this feed. Requires crontab.'));
'#description'=>t("Enter one page per line as Drupal paths. The '*' character is a wildcard. Example paths are '%blog' for the blog page and %blog1 for every personal blog. %front is the front page. If the PHP-mode is chosen, enter PHP code between %php. Note that executing incorrect PHP-code can break your Drupal site.",array('%blog'=>theme('placeholder','blog'),'%blog1'=>theme('placeholder','blog/*'),'%front'=>theme('placeholder','<front>'),'%php'=>theme('placeholder','<?php ?>'))));
@@ -436,10 +431,10 @@ function block_box_delete_confirm_execute($form_id, $edit) {
functionblock_box_form($edit=array()){
$form['title']=array('#type'=>'textfield','#title'=>t('Block title'),'#default_value'=>$edit['title'],'#size'=>60,'#maxlength'=>64,'#description'=>t('The title of the block as shown to the user.'));
$form['title']=array('#type'=>'textfield','#title'=>t('Block title'),'#default_value'=>$edit['title'],'#maxlength'=>64,'#description'=>t('The title of the block as shown to the user.'));
$form['format']=filter_form($edit['format']);
$form['body']=array('#type'=>'textarea','#title'=>t('Block body'),'#default_value'=>$edit['body'],'#cols'=>60,'#rows'=>15,'#description'=>t('The content of the block as shown to the user.'));
$form['info']=array('#type'=>'textfield','#title'=>t('Block description'),'#default_value'=>$edit['info'],'#size'=>60,'#maxlength'=>64,'#description'=>t('A brief description of your block. Used on the <a href="%overview">block overview page</a>.',array('%overview'=>url('admin/block'))),'#required'=>TRUE);
$form['body']=array('#type'=>'textarea','#title'=>t('Block body'),'#default_value'=>$edit['body'],'#rows'=>15,'#description'=>t('The content of the block as shown to the user.'));
$form['info']=array('#type'=>'textfield','#title'=>t('Block description'),'#default_value'=>$edit['info'],'#maxlength'=>64,'#description'=>t('A brief description of your block. Used on the <a href="%overview">block overview page</a>.',array('%overview'=>url('admin/block'))),'#required'=>TRUE);
'#description'=>t("Enter one page per line as Drupal paths. The '*' character is a wildcard. Example paths are '%blog' for the blog page and %blog1 for every personal blog. %front is the front page. If the PHP-mode is chosen, enter PHP code between %php. Note that executing incorrect PHP-code can break your Drupal site.",array('%blog'=>theme('placeholder','blog'),'%blog1'=>theme('placeholder','blog/*'),'%front'=>theme('placeholder','<front>'),'%php'=>theme('placeholder','<?php ?>'))));
@@ -436,10 +431,10 @@ function block_box_delete_confirm_execute($form_id, $edit) {
functionblock_box_form($edit=array()){
$form['title']=array('#type'=>'textfield','#title'=>t('Block title'),'#default_value'=>$edit['title'],'#size'=>60,'#maxlength'=>64,'#description'=>t('The title of the block as shown to the user.'));
$form['title']=array('#type'=>'textfield','#title'=>t('Block title'),'#default_value'=>$edit['title'],'#maxlength'=>64,'#description'=>t('The title of the block as shown to the user.'));
$form['format']=filter_form($edit['format']);
$form['body']=array('#type'=>'textarea','#title'=>t('Block body'),'#default_value'=>$edit['body'],'#cols'=>60,'#rows'=>15,'#description'=>t('The content of the block as shown to the user.'));
$form['info']=array('#type'=>'textfield','#title'=>t('Block description'),'#default_value'=>$edit['info'],'#size'=>60,'#maxlength'=>64,'#description'=>t('A brief description of your block. Used on the <a href="%overview">block overview page</a>.',array('%overview'=>url('admin/block'))),'#required'=>TRUE);
$form['body']=array('#type'=>'textarea','#title'=>t('Block body'),'#default_value'=>$edit['body'],'#rows'=>15,'#description'=>t('The content of the block as shown to the user.'));
$form['info']=array('#type'=>'textfield','#title'=>t('Block description'),'#default_value'=>$edit['info'],'#maxlength'=>64,'#description'=>t('A brief description of your block. Used on the <a href="%overview">block overview page</a>.',array('%overview'=>url('admin/block'))),'#required'=>TRUE);
'#description'=>t('The parent that this page belongs in. Note that pages whose parent is <top-level> are regarded as independent, top-level books.')
'#description'=>t('The parent that this page belongs in. Note that pages whose parent is <top-level> are regarded as independent, top-level books.')
$form['comment_settings']['signature']=array('#type'=>'textarea','#title'=>t('Signature'),'#default_value'=>$edit['comment_settings']['signature'],'#cols'=>60,'#rows'=>5,'#description'=>('Your signature will be publicly displayed at the end of your comments.'));
$form['comment_settings']['signature']=array('#type'=>'textarea','#title'=>t('Signature'),'#default_value'=>$edit['comment_settings']['signature'],'#description'=>('Your signature will be publicly displayed at the end of your comments.'));
return$form;
}
...
...
@@ -1108,10 +1108,10 @@ function comment_form($edit, $title = NULL) {
$form['comment_settings']['signature']=array('#type'=>'textarea','#title'=>t('Signature'),'#default_value'=>$edit['comment_settings']['signature'],'#cols'=>60,'#rows'=>5,'#description'=>('Your signature will be publicly displayed at the end of your comments.'));
$form['comment_settings']['signature']=array('#type'=>'textarea','#title'=>t('Signature'),'#default_value'=>$edit['comment_settings']['signature'],'#description'=>('Your signature will be publicly displayed at the end of your comments.'));
return$form;
}
...
...
@@ -1108,10 +1108,10 @@ function comment_form($edit, $title = NULL) {
'#default_value'=>variable_get('contact_form_information',t('You can leave us a message using the contact form below.')),
'#description'=>t('Information to show on the <a href="%form">contact page</a>. Can be anything from submission guidelines to your postal address or telephone number.',array('%form'=>url('contact')))
$form['contact']['contact']=array('#type'=>'checkbox','#title'=>t('Personal contact form'),'#return_value'=>1,'#default_value'=>$edit['contact'],'#description'=>t('Allow other users to contact you by e-mail via <a href="%url">your personal contact form</a>. Note that your e-mail address is not made public and that privileged users such as site administrators are able to contact you even if you choose not to enable this feature.',array('%url'=>url("user/$user->uid/contact"))));
$form['contact']['contact']=array('#type'=>'checkbox','#title'=>t('Personal contact form'),'#default_value'=>$edit['contact'],'#description'=>t('Allow other users to contact you by e-mail via <a href="%url">your personal contact form</a>. Note that your e-mail address is not made public and that privileged users such as site administrators are able to contact you even if you choose not to enable this feature.',array('%url'=>url("user/$user->uid/contact"))));
@@ -200,9 +200,9 @@ function contact_admin_edit($cid = NULL) {
$edit['reply']=$category->reply;
}
$form['category']=array('#type'=>'textfield','#title'=>t('Category'),'#size'=>60,'#maxlength'=>255,'#default_value'=>$edit['category'],'#description'=>t("Example: 'website feedback' or 'product information'."),'#required'=>TRUE);
$form['recipients']=array('#type'=>'textarea','#title'=>t('Recipients'),'#cols'=>60,'#rows'=>5,'#default_value'=>$edit['recipients'],'#description'=>t("Example: 'webmaster@yoursite.com' or 'sales@yoursite.com'. To specify multiple repecients, separate each e-mail address with a comma."),'#required'=>TRUE);
$form['reply']=array('#type'=>'textarea','#title'=>t('Auto-reply'),'#cols'=>60,'#rows'=>5,'#default_value'=>$edit['reply'],'#description'=>t("Optional auto-reply. Leave empty if you don't want to send the user an auto-reply message."));
$form['category']=array('#type'=>'textfield','#title'=>t('Category'),'#maxlength'=>255,'#default_value'=>$edit['category'],'#description'=>t("Example: 'website feedback' or 'product information'."),'#required'=>TRUE);
$form['recipients']=array('#type'=>'textarea','#title'=>t('Recipients'),'#default_value'=>$edit['recipients'],'#description'=>t("Example: 'webmaster@yoursite.com' or 'sales@yoursite.com'. To specify multiple repecients, separate each e-mail address with a comma."),'#required'=>TRUE);
$form['reply']=array('#type'=>'textarea','#title'=>t('Auto-reply'),'#default_value'=>$edit['reply'],'#description'=>t("Optional auto-reply. Leave empty if you don't want to send the user an auto-reply message."));
@@ -256,14 +256,14 @@ function contact_mail_page() {
if(count($categories)>1){
$form['#token']=$user->name.$user->mail;
$form['contact_information']=array('#type'=>'markup','#value'=>variable_get('contact_form_information',t('You can leave us a message using the contact form below.')));
'#default_value'=>variable_get('contact_form_information',t('You can leave us a message using the contact form below.')),
'#description'=>t('Information to show on the <a href="%form">contact page</a>. Can be anything from submission guidelines to your postal address or telephone number.',array('%form'=>url('contact')))
$form['contact']['contact']=array('#type'=>'checkbox','#title'=>t('Personal contact form'),'#return_value'=>1,'#default_value'=>$edit['contact'],'#description'=>t('Allow other users to contact you by e-mail via <a href="%url">your personal contact form</a>. Note that your e-mail address is not made public and that privileged users such as site administrators are able to contact you even if you choose not to enable this feature.',array('%url'=>url("user/$user->uid/contact"))));
$form['contact']['contact']=array('#type'=>'checkbox','#title'=>t('Personal contact form'),'#default_value'=>$edit['contact'],'#description'=>t('Allow other users to contact you by e-mail via <a href="%url">your personal contact form</a>. Note that your e-mail address is not made public and that privileged users such as site administrators are able to contact you even if you choose not to enable this feature.',array('%url'=>url("user/$user->uid/contact"))));
@@ -200,9 +200,9 @@ function contact_admin_edit($cid = NULL) {
$edit['reply']=$category->reply;
}
$form['category']=array('#type'=>'textfield','#title'=>t('Category'),'#size'=>60,'#maxlength'=>255,'#default_value'=>$edit['category'],'#description'=>t("Example: 'website feedback' or 'product information'."),'#required'=>TRUE);
$form['recipients']=array('#type'=>'textarea','#title'=>t('Recipients'),'#cols'=>60,'#rows'=>5,'#default_value'=>$edit['recipients'],'#description'=>t("Example: 'webmaster@yoursite.com' or 'sales@yoursite.com'. To specify multiple repecients, separate each e-mail address with a comma."),'#required'=>TRUE);
$form['reply']=array('#type'=>'textarea','#title'=>t('Auto-reply'),'#cols'=>60,'#rows'=>5,'#default_value'=>$edit['reply'],'#description'=>t("Optional auto-reply. Leave empty if you don't want to send the user an auto-reply message."));
$form['category']=array('#type'=>'textfield','#title'=>t('Category'),'#maxlength'=>255,'#default_value'=>$edit['category'],'#description'=>t("Example: 'website feedback' or 'product information'."),'#required'=>TRUE);
$form['recipients']=array('#type'=>'textarea','#title'=>t('Recipients'),'#default_value'=>$edit['recipients'],'#description'=>t("Example: 'webmaster@yoursite.com' or 'sales@yoursite.com'. To specify multiple repecients, separate each e-mail address with a comma."),'#required'=>TRUE);
$form['reply']=array('#type'=>'textarea','#title'=>t('Auto-reply'),'#default_value'=>$edit['reply'],'#description'=>t("Optional auto-reply. Leave empty if you don't want to send the user an auto-reply message."));
@@ -256,14 +256,14 @@ function contact_mail_page() {
if(count($categories)>1){
$form['#token']=$user->name.$user->mail;
$form['contact_information']=array('#type'=>'markup','#value'=>variable_get('contact_form_information',t('You can leave us a message using the contact form below.')));
form_set_error('drupal_directory',t('You must set your site mission on the <a href="%url">administer » settings</a> page.',array('%url'=>url('admin/settings'))));
}
$form['drupal_server']=array('#type'=>'textfield','#title'=>t('Drupal XML-RPC server'),'#default_value'=>variable_get('drupal_server','http://www.drupal.org/xmlrpc.php'),'#size'=>60,'#maxlength'=>128,'#description'=>t('The URL of your root Drupal XML-RPC server.'));
$form['drupal_server']=array('#type'=>'textfield','#title'=>t('Drupal XML-RPC server'),'#default_value'=>variable_get('drupal_server','http://www.drupal.org/xmlrpc.php'),'#description'=>t('The URL of your root Drupal XML-RPC server.'));
form_set_error('drupal_directory',t('You must set your site mission on the <a href="%url">administer » settings</a> page.',array('%url'=>url('admin/settings'))));
}
$form['drupal_server']=array('#type'=>'textfield','#title'=>t('Drupal XML-RPC server'),'#default_value'=>variable_get('drupal_server','http://www.drupal.org/xmlrpc.php'),'#size'=>60,'#maxlength'=>128,'#description'=>t('The URL of your root Drupal XML-RPC server.'));
$form['drupal_server']=array('#type'=>'textfield','#title'=>t('Drupal XML-RPC server'),'#default_value'=>variable_get('drupal_server','http://www.drupal.org/xmlrpc.php'),'#description'=>t('The URL of your root Drupal XML-RPC server.'));
$form['name']['name']=array('#type'=>'textfield','#default_value'=>$format->name,'#size'=>60,'#maxlength'=>127,'#description'=>t('Give the name of this filter format'),'#required'=>TRUE);
$form['name']['name']=array('#type'=>'textfield','#default_value'=>$format->name,'#description'=>t('Give the name of this filter format'),'#required'=>TRUE);
//Add a row of checkboxes for form group
$form['roles']=array('#type'=>'fieldset','#title'=>t('Roles'),'#description'=>$default?$help:t('Choose which roles may use this filter format.'),'#tree'=>TRUE);
$form['name']['name']=array('#type'=>'textfield','#default_value'=>$format->name,'#size'=>60,'#maxlength'=>127,'#description'=>t('Give the name of this filter format'),'#required'=>TRUE);
$form['name']['name']=array('#type'=>'textfield','#default_value'=>$format->name,'#description'=>t('Give the name of this filter format'),'#required'=>TRUE);
//Add a row of checkboxes for form group
$form['roles']=array('#type'=>'fieldset','#title'=>t('Roles'),'#description'=>$default?$help:t('Choose which roles may use this filter format.'),'#tree'=>TRUE);
@@ -182,11 +182,11 @@ function _forum_confirm_delete($tid) {
* @param $edit Associative array containing a container term to be added or edited.
*/
functionforum_form_container($edit=array()){
$form['name']=array('#title'=>t('Container name'),'#type'=>'textfield','#default_value'=>$edit['name'],'#size'=>60,'#maxlength'=>64,'#description'=>t('The container name is used to identify related forums.'),'#required'=>TRUE);
$form['description']=array('#type'=>'textarea','#title'=>t('Description'),'#default_value'=>$edit['description'],'#cols'=>60,'#rows'=>5,'#description'=>('The container description can give users more information about the forums it contains.'));
$form['name']=array('#title'=>t('Container name'),'#type'=>'textfield','#default_value'=>$edit['name'],'#maxlength'=>64,'#description'=>t('The container name is used to identify related forums.'),'#required'=>TRUE);
$form['description']=array('#type'=>'textarea','#title'=>t('Description'),'#default_value'=>$edit['description'],'#description'=>('The container description can give users more information about the forums it contains.'));
$form['weight']=array('#type'=>'weight','#title'=>t('Weight'),'#default_value'=>$edit['weight'],'#delta'=>10,'#description'=>t('When listing containers, those with with light (small) weights get listed before containers with heavier (larger) weights. Containers with equal weights are sorted alphabetically.'));
$form['weight']=array('#type'=>'weight','#title'=>t('Weight'),'#default_value'=>$edit['weight'],'#description'=>t('When listing containers, those with with light (small) weights get listed before containers with heavier (larger) weights. Containers with equal weights are sorted alphabetically.'));
@@ -204,11 +204,11 @@ function forum_form_container($edit = array()) {
* @param $edit Associative array containing a forum term to be added or edited.
*/
functionforum_form_forum($edit=array()){
$form['name']=array('#type'=>'textfield','#title'=>t('Forum name'),'#default_value'=>$edit['name'],'#size'=>60,'#maxlength'=>64,'#description'=>t('The forum name is used to identify related discussions.'),'#required'=>TRUE);
$form['description']=array('#type'=>'textarea','#title'=>t('Description'),'#default_value'=>$edit['description'],'#cols'=>60,'#rows'=>5,'#description'=>('The forum description can give users more information about the discussion topics it contains.'));
$form['name']=array('#type'=>'textfield','#title'=>t('Forum name'),'#default_value'=>$edit['name'],'#maxlength'=>64,'#description'=>t('The forum name is used to identify related discussions.'),'#required'=>TRUE);
$form['description']=array('#type'=>'textarea','#title'=>t('Description'),'#default_value'=>$edit['description'],'#description'=>('The forum description can give users more information about the discussion topics it contains.'));
$form['weight']=array('#type'=>'weight','#title'=>t('Weight'),'#default_value'=>$edit['weight'],'#delta'=>10,'#description'=>t('When listing forums, those with with light (small) weights get listed before containers with heavier (larger) weights. Forums with equal weights are sorted alphabetically.'));
$form['weight']=array('#type'=>'weight','#title'=>t('Weight'),'#default_value'=>$edit['weight'],'#description'=>t('When listing forums, those with with light (small) weights get listed before containers with heavier (larger) weights. Forums with equal weights are sorted alphabetically.'));