Download & Extend

Add twitter fieldset to "manage fields" content node form (hook_content_extra_fields implementation)

Project:Twitter
Version:6.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:aaronbauman
Status:needs review

Issue Summary

function twitter_content_extra_fields adds the twitter fieldset to the admin > content > content types > type name > manage fields form ( admin/content/node-type/type name/fields , "content_field_overview_form").

When content module is enabled, this patch gives the site admin the ability to reposition the twitter fieldset on the node add/edit form.

Tested with 6.x-3.x and 6.x-2.x

AttachmentSize
twitter.module-content_extra_fields.patch785 bytes

Comments

#1

Version:6.x-3.x-dev» 6.x-2.x-dev

This does apply to the 3.x branch, however it does not really pertain to it because there is no field on a content type in 3.x to send a post. It can be done through actions, but there is no field in which your function can apply itself to.

+++ twitter/twitter.module (working copy)
@@ -140,6 +140,24 @@
+  $twitter_types = variable_get('twitter_types', array());

Grepping through the module, 3.x branch, there isn't anywhere that this variable is ever set.

Moving it to 2.x as you say it applies there, but I have not tested 2.x

#2

Version:6.x-2.x-dev» 6.x-3.x-dev

The node-specific functionality moved to twitter_post.module and the variable name changed from "twitter_types" to "twitter_post_types"

The OP is still applicable to 2.x.

Please find 3.x patch attached.

AttachmentSize
604530-twitter-hook_content_extra_fields.patch 954 bytes

#3

BTW: The variable name is still wrong in 6.x-3.0-beta9

#4

over 2 years later... here's an updated patch.

AttachmentSize
twitter-extra-fields-604530.patch 635 bytes