// There are no branhes or tags available to make a release.
$msg='<strong>'.t('No valid branches or tags found.').'</strong>';
$msg.='<p>'.t('Your release needs to have a tag or branch that follows the <a href="http://drupal.org/node/1015226">naming conventions</a> and have no other release attached to it.').'</p>';
$msg.='<p>'.t('Branches are for dev releases; tags are for alpha, beta, and stable releases etc.').'</p>';
$msg.='<p>'.t('For more help, see <a href="http://drupal.org/node/1066342">Creating a Tag or Branch in Git</a> or the <a href="@git_instructions_url">Git instructions</a> page for your project.',['@git_instructions_url'=>url('node/'.$project->nid.'/git-instructions')]).'</p>';
$msg.='<p>'.t('Once you have added a valid branch or tag, <a href="@retry">try again</a>.',['@retry'=>url('node/add/project-release/'.$project->nid)]).'</p>';
drupal_set_message($msg,'warning');
}
}
}
return['value'=>$element];
}
/**
* Helper function, adds metadata to VCS label options.
$msg='<strong>'.t('No valid branches or tags found.').'</strong>';
$msg.='<p>'.t('Your release needs to have a tag or branch that follows the <a href="http://drupal.org/node/1015226">naming conventions</a> and have no other release attached to it.').'</p>';
$msg.='<p>'.t('Branches are for dev releases; tags are for alpha, beta, and stable releases etc.').'</p>';
$msg.='<p>'.t('For more help, see <a href="http://drupal.org/node/1066342">Creating a Tag or Branch in Git</a> or the <a href="@git_instructions_url">Git instructions</a> page for your project.',array('@git_instructions_url'=>url('node/'.$project->nid.'/git-instructions'))).'</p>';
$msg.='<p>'.t('Once you have added a valid branch or tag, <a href="@retry">try again</a>.',array('@retry'=>url('node/add/project-release/'.$project->nid))).'</p>';
'description'=>'How is this release built? Can be either \'Static\' if the files associated with it are built once and remain unchanged (e.g. an official release from a tag), or \'Dynamic\' if the files are regularly rebuilt and updated (e.g. a development snapshot rebuilt from the end of a branch).',
'display'=>array(
@@ -9878,9 +9874,9 @@ function drupalorg_projects_field_default_field_instances() {
),
'widget'=>array(
'active'=>1,
'module'=>'options',
'module'=>'field_extrawidgets',
'settings'=>array(),
'type'=>'options_select',
'type'=>'field_extrawidgets_hidden',
'weight'=>6,
),
);
@@ -10274,9 +10270,9 @@ function drupalorg_projects_field_default_field_instances() {
@@ -10402,11 +10396,14 @@ function drupalorg_projects_field_default_field_instances() {
),
'widget'=>array(
'active'=>1,
'module'=>'text',
'module'=>'field_extrawidgets',
'settings'=>array(
'display_empty'=>0,
'formatter'=>'',
'formatter_settings'=>array(),
'size'=>60,
),
'type'=>'text_textfield',
'type'=>'field_extrawidgets_hidden',
'weight'=>3,
),
);
@@ -16582,6 +16579,7 @@ function drupalorg_projects_field_default_field_instances() {
t('Project type');
t('Recommended');
t('Release Category');
t('Release branch or tag');
t('Release file');
t('Release file SHA-1 hash');
t('Release file SHA-256 hash');
@@ -16592,6 +16590,7 @@ function drupalorg_projects_field_default_field_instances() {
t('Replaced by');
t('Screenshots');
t('Security advisory coverage');
t('Select the Git branch or tag for this release.');
t('Short description');
t('Short name');
t('Show in project’s download table when branch is supported');
@@ -16605,12 +16604,10 @@ function drupalorg_projects_field_default_field_instances() {
<li>Fund the port of this project at [link]</li>
<li>Use this project instead: [link]</li>
</ul>');
t('The label (branch or tag) in a version control system that represents this release.');
t('Update status');
t('Use this field to indicate that this project\'s primary purpose is to provide enhancement for one or more other projects, and thus forms part of an ecosystem around it. For example, if your project provides plugins for Views, or adds functionality to Organic Groups, and so on. Projects that are referred to here will gain a list of \'ecosystem modules\' on their project page, allowing users to easily find modules to extend their functionality.');
t('Used to classify different aspects of a project, eg. a software project might have <em>Code</em>, <em>User interface</em>, and <em>Documentation</em> components.');
t('Used to set the initial default component for new project issues.');