drupal

Articles about drupal

Altering image field widget “alt” or title" label

Jan
2017
04
For altering the "Title" and "Alternate Text" textfields of an image field we have to add an extra Proccess function for the widget form.
// Alter image Title for field_top_image instance
function MYMODULE_field_widget_form_alter(&$element, &$form_state, $context) {

How to clean deleted fields from your Database

Mar
2016
21
Sometimes, we start building content types with cutom fields through the old mighty CCK module, only to find out later that there is a different need or better approach for the specific field and we need to delete and recreate it.

Hook node_view and content

Jul
2015
08
I was trying to remove some field collection items (with default values but only for one subfield) from a node and although everything was working fine nothing was changing. So what was i doing wrong then? Well there a "small" catch that it is not clear about the node object that is rendered inside the node_view hook.

Remove: 3 orphaned actions (comment_publish_action, comment_unpublish_action, comment_save_action) exist in the actions table

Jun
2015
18
So you disabled the comment core drupal 7 module but now you get at Log Messages (admin/reports/dblog) this warning:
3 orphaned actions (comment_publish_action, comment_unpublish_action, comment_save_action) exist in the actions table

Pages

Subscribe to RSS - drupal
this is an arrow pointing back to the top of the page