0
votes
2answers
39 views
+50

Guidelines on customisation options when using hook_views_default_views?

Are there any good instructions for the customisation options available when creating a default Views files using hook_views_default_views()? The API for the function can be found here: ...
0
votes
0answers
15 views

How to create a link for certain user roles to modify a field of a node?

I have a content type called "orders". Users can create orders, admins can list orders (via a view). What I want to do is add a link or button both on the view and the content page of "order" to let ...
1
vote
1answer
44 views

Add content type machine name to an attribute in the body tag?

I figured this would be easily done in the template_preprocess_html function, but I haven't found a way to do it... yet. I need to add the content type machine name to a "data-init" attribute in the ...
1
vote
1answer
31 views

how to alter block subject html tag?

I am trying to change the <h2> tags that block.tpl.php uses to wrap <?php print $block->subject ?> to <h3> tags so that I can target them with jQuery UI Accordion. I've got the ...
0
votes
0answers
16 views

What could cause modules to not fire in the correct order after altering the module weight or name, and how to correct it?

I wrote 3 custom modules, and I have given them a weight of 1,2, and 3 in their .install files as functionality in the later modules depend on functionality in the modules before them. The weights ...
0
votes
1answer
35 views

Altering the breadcrumb contents

I'm trying to use this hook in order to alter a breadcrumb link : hook_menu_breadcrumb_alter(&$active_trail, $item) The hook don't seem to be called. I've tried : Using the hook on a theme ...
0
votes
0answers
13 views

Custom template for media

I am using media module and using it in WYSIWYG. Is it possible to customize the display of media image? Is there any template file I can rewrite or any hook to call? I found file_entity.tpl.php. but ...
0
votes
3answers
68 views

How to remove results returned from Views UI

I am getting results as expected using Views UI. But I don't want to display a particular record from the output of Views UI. How to achieve this and will I require any hooks for this? For example; ...
0
votes
1answer
92 views

how to manipulate entity field values in drupal 7 in custom module

I am creating a Payroll entity in which I have to manipulate different field values based on another field value (see below). I have the following fields and I want to calculate the bottom four field ...
0
votes
1answer
59 views

module_invoke/module_invoke_all with multiple arguments

I know enough D7 to be dangerous. I'm stumped, however, as to how to call one module from another. In this case, I want to call the simplenews module's subscribe_user hook from a custom module I'm ...
0
votes
0answers
90 views

Webform Pre-Built Option List Set Default

I am using Webform 7.x-4.0-alpha6. I created a custom module using _webform_select_options_info() in order to create a custom dynamic pre-built option list for my webform. The module and webform work ...
0
votes
0answers
33 views

Solution to create more than one custom search tab

I am hooking to the search module, with this code : function mymodule_search_info() { return array( 'title' => 'Custom tab search', 'path' => 'custom-search', ...
0
votes
1answer
35 views

Hook to render all active Facet

Is there a possible hook or something else that can be written to display all the current active facet link i.e the selected facet. i want to display to the user in breadcrumb format all the facet ...
0
votes
1answer
40 views

Accessing node#ID in node save process

I just realized hook_node_presave($node) does not yet have a NODE#ID associated with the new node. Can anyone tell me if there is a hook in the node creating process where I can access the new nodes' ...
0
votes
2answers
64 views

Perform actions on field collection insert or update

I have created field collection and added it to my content type. I have created a node, and now user can add field collections on this node. But i need to write into a file(some stuff) when user added ...

1 2 3 4 5 19
15 30 50 per page