hooking into hook_field_prepare_view

I have a content type, with an extra field (customerNo, which is an int).

I'm trying to replace this customerNo with another text in my module. but I can't seem to get the ...biip.. working.

Currently I have tried using hook_field_prepare_view, which doesn't seem to get called anywhere in the page creation (I have flushed the cache several times).

my mymodule.module includes the following chunk of code :

function mymodule_field_prepare_view($entity_type, $entities, $field, $instances, $langcode, &$items) {
dpm('prepare_view called');
}

How do I add a simple field a = field b condition to a query?

Hi,

In my module I am overriding the query used to generate the node listing for taxonomy term pages.

function mymodule_query_alter($query){
	$where =& $query->conditions();
        $where[1]['field'] = 'book.nid';
        $where[1]['value'] = 'book.bid';
        $where[1]['operator'] = '=';
}

The code above doesn't work. What I need is the extra condition

AND book.nid = book.bid

What I get is

AND book.nid = 'book.nid'

VIEWS: After adding Grouping to my table in views, the table widths become different sizes.

I am trying to make a simple view.

Display Type: Table

Fields:
Node Title
Content: Price
Taxonomy Terms (Services) (exclude from display)

Under Table settings I just go to group by: Taxonomy (Services)

This does exactly what I want creates multiple tables all listed on one page.
Example of how I want it to look:

Can't edit Taxonomy Term Pages, is there a template file?

I am doing a website with a taxonomy vocabulary called Services. The terms for this vocabulary are the categories for all of the services.
I have a content type setup called Add Service. Within this content type the only fields are:
"Service Title"
"Category" (this is my taxonomy term field)
"Price"
"Description"

This works out great because when the user adds a service it is tagged with its service category. This way when a category (term page) is visited it lists only the services under that category.

MongoDB field storage activation

Activating MongoDB field storage still gives strange results.
Without really activating the module using the following statement in settings.php $conf['field_storage_default'] = 'mongodb_field_storage';
But, by enabling the mongodb module it seems to store certain data of the content we created in to MongoDB. We also observed that by making the mongdb_field_storage.module empty and after clearing the cache it still keeps doing so.

node/add is redirected to node/add/content-type

Hi all!

I experience a weird issue on my Drupal 7 site.

node/add is redirected to node/add/content-type - the add node form for a specific content type. I can access the forms for other content types by typing content types in the URL, so there seems to be no access permissions issue . Also, I am using user 1 account.

Can't find out what causes the redirect. Is there any way to set up a hook or something to find out why this happens?

Thanks a lot in advance.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x