Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-2.x-dev
Component:
General
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2008 at 01:04 UTC
Updated:
14 Jul 2012 at 23:23 UTC
Unless I'm sorely mistaken, the 'callbacks' in hook_field_info are not used anymore.
We currently have things like :
function text_field_info() {
return array(
'text' => array(
'label' => t('Text'),
'description' => t('Store text in the database.'),
'callbacks' => array(
'tables' => CONTENT_CALLBACK_DEFAULT,
'arguments' => CONTENT_CALLBACK_DEFAULT,
),
),
);
}
In D5 we had some use of 'view' => CONTENT_CALLBACK_CUSTOM, but we got rid of it in D6.
Browsing through the code, I can see no use of 'tables' and 'arguments' even in D5 ??
Anyway - I removed those 'callback' entries from our hook_field_info(), and also removed a branch of code from content.panels.inc that was still testing content_handle('view').
Comments
Comment #1
karens commentedIt was used in D5 by modules that needed to override the standard settings, like Date, but is no longer needed in D6. I removed this code from the Date module, too.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.