This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Print entity pdf add setPaper fonctionnality

I need to generate pdf file from views. I use entity print with dompdf librarie.

Here is my code :

How to rebuild form after ajax callback is submitted.

Hello Friends,

I have a form that I am opening in a modal via a link.

I use this form to both add notes and also display them in a table (adding notes and displaying notes in table happens in same form).

In my form I have a ajax callback that I use to add notes, when the submit button is fired.

When my form is submitted, I would like to keep the modal open, but rebuild the table so that the changes are reflected (user can see the note they added in the table).

Disabling a user password

I use the following code snippet in custom code I am developing to add new users:

I am adding a new record to the users table.

                $edit = array();
                $edit["name"] = $data->name;
                $edit["status"] = $data->status;
                $edit["mail"] = $data->mail;
                $account = new stdClass();
                $account->is_new = TRUE;
                $new_user = user_save($account, $edit, $category = 'account');

print a pdf with dompdf : how to set a template

If you print pdf with entity-print you can access to a twig template, but you can not set the paper size.

So I decide to print my pdf with dompdf directly :

How to Authenticate between legacy site and main drupal site?

Drupal 7.x

I have a drupal multisite (2 main sites that share the same code base example1.com and example2.com) then I have some legacy sites f.x my main site is example.com then legacy site is ex1.example.com they do not share the same user database table nor schema i.e. if you are logged into ex1.example.com you are not logged into example.com.

What I want to do is allow users to be able to log into my legacy site: ex1.example.com and have a link on that site that leads to example.com and STAY logged into both sites

Viewing Users filtered by field in logged in user

We've added a field to the user (Program Id), and we're trying to filter a user view showing the users whose Program Id is the same as the logged in user.  Is there any way to do this via the  Views UI, or is this going to require programmatically creating a filter, and if the latter, how do I go about doing it?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions