Issue #1552412 by duellj: Make API links point to D8 version, and where possible make them future-proof
parent
638e8cb0b8
commit
845d9839fd
|
@ -168,7 +168,7 @@
|
|||
* displayed while awaiting a response from the callback, and add an optional
|
||||
* message. Possible keys: 'type', 'message', 'url', 'interval'.
|
||||
* More information is available in the
|
||||
* @link http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/7 Form API Reference @endlink
|
||||
* @link forms_api_reference.html Form API Reference @endlink
|
||||
*
|
||||
* In addition to using Form API for doing in-form modification, Ajax may be
|
||||
* enabled by adding classes to buttons and links. By adding the 'use-ajax'
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
* the elements and properties of the form. For information on the array
|
||||
* components and format, and more detailed explanations of the Form API
|
||||
* workflow, see the
|
||||
* @link http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html Form API reference @endlink
|
||||
* @link forms_api_reference.html Form API reference @endlink
|
||||
* and the
|
||||
* @link http://drupal.org/node/37775 Form API documentation section. @endlink
|
||||
* In addition, there is a set of Form API tutorials in
|
||||
|
@ -214,10 +214,10 @@ function drupal_get_form($form_id) {
|
|||
* set.
|
||||
* - values: An associative array of values submitted to the form. The
|
||||
* validation functions and submit functions use this array for nearly all
|
||||
* their decision making. (Note that
|
||||
* @link http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/7#tree #tree @endlink
|
||||
* determines whether the values are a flat array or an array whose
|
||||
* structure parallels the $form array.)
|
||||
* their decision making. (Note that #tree determines whether the values
|
||||
* are a flat array or an array whose structure parallels the $form array.
|
||||
* See the @link forms_api_reference.html Form API reference @endlink for
|
||||
* more information.)
|
||||
* - input: The array of values as they were submitted by the user. These are
|
||||
* raw and unvalidated, so should not be used without a thorough
|
||||
* understanding of security implications. In almost all cases, code should
|
||||
|
|
|
@ -690,8 +690,7 @@ function hook_field_is_empty($item, $field) {
|
|||
* which widget to use. Widget types are defined by implementing
|
||||
* hook_field_widget_info().
|
||||
*
|
||||
* Widgets are
|
||||
* @link http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html Form API @endlink
|
||||
* Widgets are @link forms_api_reference.html Form API @endlink
|
||||
* elements with additional processing capabilities. Widget hooks are typically
|
||||
* called by the Field Attach API during the creation of the field form
|
||||
* structure with field_attach_form().
|
||||
|
|
|
@ -310,7 +310,7 @@ function field_help($path, $arg) {
|
|||
}
|
||||
$output .= theme('item_list', $items) . '</dd>';
|
||||
$output .= '<dt>' . t('Managing field data storage') . '</dt>';
|
||||
$output .= '<dd>' . t('Developers of field modules can either use the default <a href="@sql-store">Field SQL Storage module</a> to store data for their fields, or a contributed or custom module developed using the <a href="@storage-api">field storage API</a>.', array('@storage-api' => 'http://api.drupal.org/api/group/field_storage/7', '@sql-store' => url('admin/help/field_sql_storage'))) . '</dd>';
|
||||
$output .= '<dd>' . t('Developers of field modules can either use the default <a href="@sql-store">Field SQL Storage module</a> to store data for their fields, or a contributed or custom module developed using the <a href="@storage-api">field storage API</a>.', array('@storage-api' => 'http://api.drupal.org/api/group/field_storage/8', '@sql-store' => url('admin/help/field_sql_storage'))) . '</dd>';
|
||||
$output .= '</dl>';
|
||||
return $output;
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
?>
|
||||
<!--
|
||||
THIS FILE IS NOT USED AND IS HERE AS A STARTING POINT FOR CUSTOMIZATION ONLY.
|
||||
See http://api.drupal.org/api/function/theme_field/7 for details.
|
||||
See http://api.drupal.org/api/function/theme_field/8 for details.
|
||||
After copying this file to your theme's folder and customizing it, remove this
|
||||
HTML comment.
|
||||
-->
|
||||
|
|
|
@ -102,7 +102,7 @@ function _php_filter_tips($filter, $format, $long = FALSE) {
|
|||
$output .= '<ul><li>' . t('Remember to double-check each line for syntax and logic errors <strong>before</strong> saving.') . '</li>';
|
||||
$output .= '<li>' . t('Statements must be correctly terminated with semicolons.') . '</li>';
|
||||
$output .= '<li>' . t('Global variables used within your PHP code retain their values after your script executes.') . '</li>';
|
||||
$output .= '<li>' . t('<code>register_globals</code> is <strong>turned off</strong>. If you need to use forms, understand and use the functions in <a href="@formapi">the Drupal Form API</a>.', array('@formapi' => url('http://api.drupal.org/api/group/form_api/7'))) . '</li>';
|
||||
$output .= '<li>' . t('<code>register_globals</code> is <strong>turned off</strong>. If you need to use forms, understand and use the functions in <a href="@formapi">the Drupal Form API</a>.', array('@formapi' => url('http://api.drupal.org/api/group/form_api/8'))) . '</li>';
|
||||
$output .= '<li>' . t('Use a <code>print</code> or <code>return</code> statement in your code to output content.') . '</li>';
|
||||
$output .= '<li>' . t('Develop and test your PHP code using a separate test script and sample database before deploying on a production site.') . '</li>';
|
||||
$output .= '<li>' . t('Consider including your custom PHP code within a site-specific module or <code>template.php</code> file rather than embedding it directly into a post or block.') . '</li>';
|
||||
|
|
|
@ -1134,7 +1134,7 @@ function system_library_info() {
|
|||
// Drupal's Ajax framework.
|
||||
$libraries['drupal.ajax'] = array(
|
||||
'title' => 'Drupal AJAX',
|
||||
'website' => 'http://api.drupal.org/api/drupal/includes--ajax.inc/group/ajax/7',
|
||||
'website' => 'http://api.drupal.org/api/group/ajax/8',
|
||||
'version' => VERSION,
|
||||
'js' => array(
|
||||
'core/misc/ajax.js' => array('group' => JS_LIBRARY, 'weight' => 2),
|
||||
|
|
|
@ -336,7 +336,7 @@ function standard_install() {
|
|||
|
||||
// Create an image field named "Image", enabled for the 'article' content type.
|
||||
// Many of the following values will be defaulted, they're included here as an illustrative examples.
|
||||
// See http://api.drupal.org/api/function/field_create_field/7
|
||||
// See http://api.drupal.org/api/function/field_create_field/8
|
||||
|
||||
$field = array(
|
||||
'field_name' => 'field_image',
|
||||
|
@ -357,7 +357,7 @@ function standard_install() {
|
|||
|
||||
|
||||
// Many of the following values will be defaulted, they're included here as an illustrative examples.
|
||||
// See http://api.drupal.org/api/function/field_create_instance/7
|
||||
// See http://api.drupal.org/api/function/field_create_instance/8
|
||||
$instance = array(
|
||||
'field_name' => 'field_image',
|
||||
'entity_type' => 'node',
|
||||
|
|
Loading…
Reference in New Issue