Chapabu
  • Member for 10 years, 2 months
  • Last seen more than 2 years ago
2 answers
0 votes
492 views
Module for sidebar menu which appears in open atrium
3 votes

I think you're looking for the Admin module.

View answer
4 answers
6 votes
17k views
Add arguments to custom submit
3 votes

Submit handlers have $form and $form_state automatically passed to them as arguments ($form_state will contain the submitted values for your form). Assuming there are no arguments already supplied, ...

View answer
1 answers
0 votes
513 views
How can I lock a user profile field after registration?
Accepted answer
3 votes

Could you use the Field Permissions module? You could set permissions on the field so that authenticated users (or any other user role if you're using any) cannot edit this specific field, but ...

View answer
2 answers
18 votes
12k views
How to prevent user registration
3 votes

Go to admin/config/people/accounts and check the box that says Administrators only under Who can register accounts?

View answer
1 answers
2 votes
472 views
Use views with the Homebox module
Accepted answer
3 votes

Yes it is! You embed blocks into Homebox regions, so just create a block display of your view, and include it into your Homebox on the layout page. Any disabled blocks will be listed at the bottom, ...

View answer
2 answers
1 votes
402 views
is there a module for status updates in drupal 7
Accepted answer
3 votes

Somthing along the lines of statuses? It doesn't have a stable release yet, so is DEFINITELY not ready for production. I've not used Heartbeat, so I can't help any more than that I'm afraid :(

View answer
2 answers
2 votes
1k views
Résumé upload functionality in Drupal 7
Accepted answer
2 votes

Add a Résumé content type. Add your text fields and a file field to this content type. Set your permissions accordingly, allowing whichever user roles you want (or anonymous) to create this content. ...

View answer
2 answers
3 votes
5k views
"PHP Notice: Constant DATE_RFC7231 already defined in /ext/vhosts/public/includes/bootstrap.inc on line 258"
Accepted answer
2 votes

Are you certain you're running PHP 5 and not a version of PHP 7? I've only ever seen that error when running PHP 7, and it was due to DATE_RFC7231 already defined in PHP 7.0.19 and 7.1.5. Either way, ...

View answer
3 answers
0 votes
1k views
How to use Drupal Code Sniffer in windows?
2 votes

On the project page there are instructions for each IDE. The one you're after (Eclipse) is here. In case anyone uses something else, the other instructions are as follows: Vim, Sublime Text, and ...

View answer
4 answers
1 votes
2k views
How do I force nodes to have revisions by default when using REST?
2 votes

You should be able to set this option to be checked by default. If you go to the edit page for your content bundle (i.e. admin/structure/types/manage/article), under Publishing options, you can ...

View answer
3 answers
10 votes
905 views
How to fix "Hook implementations should not duplicate @param documentation."?
2 votes

Adding an answer for posterity; as per Clive's comment: You need to turn off the built in PHPStorm inspection that checks for "Missing PHPDoc Comments", then you can safely delete your @param blocks....

View answer
1 answers
1 votes
29 views
Utilizing private methods/vars inside module
2 votes

Yes - it's that simple. Remember; Drupal is only PHP. Although your class should be called MyClass.php rather than MyClass.class.php to adhere to the Drupal Coding Standards for OO code (note - this ...

View answer
4 answers
2 votes
195 views
install modules with custom module
2 votes

If you define the modules in the subdirectory as dependencies of your main module, then they'll be enabled once your "controller" module is. i.e. name = Really Neat Widget description = Provides a ...

View answer
1 answers
1 votes
38 views
How to migrate Drupal Commerce configuration between environments
Accepted answer
2 votes

Commerce Features has helped me in the past. Apart from that, you're looking at update hooks (or possibly the Configuration Management module).

View answer
3 answers
5 votes
2k views
Is it possible to do a drush sql-sync of only certain tables?
2 votes

If you check out the Drush Commands page for sql-sync (or drush sql-sync --help) then you'll notice there is a parameter called --skip-tables-list. --skip-tables-list : A comma-separated list of ...

View answer
1 answers
1 votes
62 views
Is it possible to use Views for listing data created in a custom module?
Accepted answer
2 votes

I know link-only answers are generally frowned upon, but this series of blog posts are unlikely to ever go anywhere and are WELL worth a read: Building Views Query Plugins: Part 1 - Mapping web ...

View answer
5 answers
6 votes
6k views
Assign a role upon registration
2 votes

Another option is the Auto Assign Role module: The Auto Assign Role serves three primary purposes. The first is to provide an automatic assignment of roles when a new account is created. The ...

View answer
4 answers
40 votes
2k views
What is the suggested workflow for migrating (CMI) configuration from dev -> stage -> production?
2 votes

Note: I appreciate that this isn't an answer in the strictest sense in relation to the question, but I've put it here anyway and I'll revisit and edit/delete once Features has an 8.x release and the ...

View answer
2 answers
1 votes
695 views
is there a place in the .info file to set a url to check for updates?
2 votes

Have you read the docs? project status url (Only used for custom modules not submitted to drupal.org) Allows module maintainers to define a URL to check for updates to their module using ...

View answer
1 answers
0 votes
73 views
How to create 2 product node displays
2 votes

You can use Entity view modes to create two displays for an entity. The Drupal 7 successor to Build modes which will allow administrators to define custom view modes for entities. I'd probably ...

View answer
6 answers
2 votes
6k views
How to remove ":" (colon) when displaying field name?
2 votes

I know this is a super old question, but nowadays there's also the Colonectomy module. This simple module allows the colon punctuation mark to be removed from field labels.

View answer
1 answers
3 votes
139 views
When programmatically adding views, what is a more efficient way to add them other than include them in mymodule.views_default.inc?
2 votes

I'm not 100% sure if it'd help performance-wise, but it is possible to separate the Views into different files. In your case, this is probably useful anyway as that's a LOT of Views. If you create a ...

View answer
2 answers
0 votes
138 views
How can I remove the hardcoded menus from the Navin subtheme?
Accepted answer
2 votes

<?php $main_links = menu_tree_page_data(variable_get('menu_main_links_source', 'main-menu')); $main_links = menu_tree_output($main_links); $secondary_links = menu_tree_page_data(variable_get('...

View answer
2 answers
2 votes
335 views
Features - branch 2.x results in large info files that exceed the 'info' column limit in the 'system' table
2 votes

The way I see it, you have options: Features Break your Features down into smaller Features. Yes, this might make the dependencies a little more effort to manage, but a Feature containing that many ...

View answer
1 answers
0 votes
179 views
Is it possible to record user agent information on node creation?
Accepted answer
2 votes

I would probably use a combination of hook_node_insert and watchdog (to keep UA info off of nodes and because it is really a logging exercise). Example (this is totally untested and off the top of my ...

View answer
2 answers
2 votes
137 views
How to identify where a particular block come from?
2 votes

The easiest way for Drupal 6 would probably be to use the Contextual links module. Hover over nodes, blocks, and views blocks to expose styled edit/configure/delete tabs. It's a backport of the ...

View answer
2 answers
1 votes
3k views
How to add a table to a Webform or EntityForm
2 votes

A combination of EntityForms and TableField should get you going. This module allows you to attach tabular data to a node in Drupal 6 or any entity in Drupal 7.

View answer
4 answers
5 votes
2k views
Designing different content types with the same fields' name (shared fields)
2 votes

As a general rule, I don't share fields unless they are being shared on entities that are part of the same section (or feature if that makes it easier)of my site. For example, if I need an Entity ...

View answer
1 answers
0 votes
702 views
Is there a Drupal tool to aggregate and compress CSS files
Accepted answer
2 votes

I'm not 100% sure I'm right in thinking this, but if you're looking for something to reverse the CSS aggregation/compression, but if you are then it doesn't look like there is anything that exists ...

View answer
4 answers
7 votes
5k views
How to Remove "Edit Summary" Off Editor
2 votes

Just go to the Manage Fields page for your entity (content type, user, taxonomy term, etc) and change the body field widget from Text Area with Summary to Text Area. I'm assuming you're talking about ...

View answer
1
3 4
5
6 7
13