Commit 32b43286 authored by jcfiala's avatar jcfiala
Browse files

Issue #1125384 by Rob Loach: Changed url length in link_field_schema to not...

Issue #1125384 by Rob Loach: Changed url length in link_field_schema to not use the constant which is not always defined.
parent 034178c9
......@@ -13,7 +13,7 @@ function link_field_schema($field) {
'columns' => array(
'url' => array(
'type' => 'varchar',
'length' => LINK_URL_MAX_LENGTH,
'length' => 2048, // Maximum URLs length.
'not null' => FALSE,
'sortable' => TRUE
),
......
......@@ -18,7 +18,7 @@ define('LINK_TARGET_TOP', '_top');
define('LINK_TARGET_USER', 'user');
/**
* Maximum URLs length.
* Maximum URLs length - needs to match value in link.install.
*/
define('LINK_URL_MAX_LENGTH', 2048);
......@@ -360,7 +360,7 @@ function _link_sanitize(&$item, $delta, &$field, $instance, &$node) {
$type = link_validate_url($item['url']);
$url = link_cleanup_url($item['url']);
//dpm(array($type, $url));
// Separate out the anchor if any.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment