Assign users to another company while delete a company Drupal 7 - drupal-7

Am working with a affliate management site developed in drupal 7
Actually what I want to do is to assign the company users to another company while we delete a company.
We can assign the users to another company via bulk operation.
But how can we achieve the same while we delete a company.
Can any one help me to solve this issue?
Drupal version :7.X
Now:
When we click on edit , there is a popup come with a delete button in the end of page.
When we click on delete button it will take users to delete confirmation page. once click on the delete button in confirmation page, data get deleted.
Requirement:
We need to show the same bulk operation drop down in the delete confirmation window.
Can anyone please suggest how can we achieve this task.

The hook that is responsible for the confirmation step is node_delete_confirm and for deletion node_delete_confirm_submit.
So you have to create a rules action like the one you have but it will run on the "before deleting a node" event. There are some useful issues for this.
Alternatively, there is a module that hooks into the deletion process of nodes: Predelete.

Related

Azure SQL Alerts to integrate with TEAMS

I am trying to integrate Azure SQL Alerts with Teams. I have created webbook and the link I got paste it into Azure action group. When I run a test it has fail output. So then I have created runbook and within the runbook created webbook. The link I got from the webbook I inserted into the action group when run test it was successful. I can see the alert in the azure runbook/webbook but didn't come trough TEAMS.
Please Follow these steps to achieve the Alert goals
Step 1: Create a blank Logic App
• For this step, you need to login to the Azure portal and create a new Logic App. Once you’re in the right place, click on the Add menu and select the Logic App type you want to create. The available types are: Standard and Consumption. You can find all the necessary info in the page Pricing and billing models for Azure Logic Apps at link
Step 2: Configure the Logic App
• In the Logic App designer page, click on the When a HTTP request is received. This will be our trigger .
• After the selection, you will be presented with the Logic App designer canvas. This is where we will do all our remaining configurations starting with the trigger activity we just added
• Configure the activity with the JSON schema that the trigger will use. Since the request will contain the alert’s JSON payload, you can refer (and use) the sample schema you can find in the article Common alert schema definitions at link .Copy the sample alert payload from the page, click on Use sample playload to generate schema, paste the content and click Done
• To create a condition used to decide which notification activity to use, click on the New Step, in the search box type Control
• Select the Control group and then select the Switch activity to add it to the canvas. For groups with lots of activities, you can enter the activity name or part of it in the search box.
Once added, this activity needs some configuration:
Team ID,Channel, Message
As far as the Team ID and the Channel go, you can select Azmon alert,With regards to the Message body part, this is representing the information sent through the notification. Here you can enter static text formatted as you like, dynamic content as well as formulas. In my example I started with a kind of title and followed with sections under which there are the info I wanted to send. For the static text, you just need to write it. For the dynamic content and/or formulas, once you decided the line where to put it, click on Add dynamic content and select it from the side panel click in the Message canvas and either select it from the Dynamic content list or assemble it using the Expression builder
In this post, since I got everything correctly parsed from the trigger activity (the When a HTTP request is received), I will go use the dynamic content only. For instance, after having put some text like – Alert Id: I will select alertId content from the list
Step 3: Configure the Action Group
configure an Action Group to use it in order receive our alerts as expected.From the Azure Monitor blade
• From the Alerts page, click on Manage actions
• Click on New action group
• Enter the necessary basic information and click on Next: Notifications
• Configure the following according to what has been created before:
o Action type
o Name
o Selected
• making sure to enable the common alert schema and select and create
Step 4: Add the new action group to your alerts
we have the Action group created and configured; we need to add it to all the alerts we want to notify
• From the Alerts page, click on Manage alert rules
• In the Actions section, add the new action group to the existing one (or remove them if not necessary
• Select the newly created (and de-select the selected ones if necessary) and click Select
• Click Save to save and apply the changes
Step 5: Test
Refer below doc
link

How to make a page with a list of Users in a Salesforce Community?

So I'm completely new to Salesforce Communities and working with the Experience Builder which is where I think this task would need to be done.
I want to display a list of Users in the Community (specifically only ones associated with the same Account as the current User) showing a certain set of fields and allowing in-line edits.
I see there's already a set of pages for User list, profile, and related list, but the User List page is blank by default. I found the Record List component for Experience Builder, but it does not appear to support User.
I'm considering making a Lightning Component that displays my table of Users to then use as a component in Experience Builder, but I'm not sure how involved of a process that would be or if there is a more straightforward approach.
How can I go about making this?
(If it matters, when I first made the Community I believe I selected "Customer Service")

delete record in web page not in the database using laravel

i am novice to the laravel.I need to do functionality like click the delete link the data is delete in the web page but it should not delete in the database.I already search in the google but did not get any idea.Can any one suggest for this?
Advance Thanks
There are two approaches that you can do:
You may add an "enabled" boolean field in the database table so that if the user clicks "Delete" on the front-end, you can just set it to "0" (false). Then filter out the view w/ only "enabled" entries.
You may utilize JavaScript for this by setting the it as "visible:false".

Display recently viewed pages and an image for that page in CakePHP

So title basically sums it up, how would I go about doing something like this?
I want a logged in user to have their own "logged in page" that they can view products that they have recently viewed and then suggest other products that they might like to view in the future.
Any ideas? Google literally has nothing on doing this with CakePHP.
I am so lost for what to do and this is for an assignment due tomorrow night.
You need to created a database table to records users activity. Mean, you need to save what product are browsing by users and you can show them this in next.

Making a link pulled from a database active

I'm creating a social network, and in the user info section I've made it possible for the user to add there Facebook link into the database table via a input form.
Now when they add this link, it sends it to the database and then it returns and echo's out the submitted data into both the user info page and the user status stream, this enables others can see there newly updated info.
Only problem is, the link submitted is not active when it returns from the database, is there anyway either in my page, or within the database, I can tell this to be an active link, maybe even some JavaScript that detects inactive links?
Any help would be greatly appreciated.
Thanks,
What do you mean by "make the link active"?
What language are you developing in?
To use a database field to generate a clickable link in a web browser, you create the HTML framework and then insert the database output into the relevant position.
In PHP, for instance:
<?php echo $linkURL; ?>
Would create a clickable link which would direct visitors to the URL in the $linkURL variable.

Resources