How do you output and modify the Content:Path variable using field:PHP global?

How do you output and modify the Content:Path variable using field:PHP global?

I’m trying to modify the content:path variable using PHP field in Views for Drupal 7. The $data and the $row->path gives a blank result. Anyone know why? It seems that I can grab it via the $views variable, but i have to dig deep into it in order to find it.... read more
How do you output and modify the Content:Path variable using field:PHP global?

Validating node creation / edit form

I’m using form_alter to play with the node form for a specific content type. This content type has many different fields and I’m also using Field Collection module to organize all these fields & logic, if that makes any difference. Apparently, there... read more
How do you output and modify the Content:Path variable using field:PHP global?

Why the action buttons are not working?

I am rendering the user profile edit form ($form_id = ‘user_profile_form’) on a custom tpl.php page. All the custom fields are user-defined under configuration > Account Settings > Manage Fields: Following is the code: <?php $form =... read more
How do you output and modify the Content:Path variable using field:PHP global?

How to format the raw date formats when using Google Analytic Reports?

I am using Google Chart Tools, Views, and Google Analytic Reports to create charts for an admin dashboard. However the date format (Time Dimensions: ga:date) outputs the date in the YYYYMMDD format. How can I change that to something like Oct 31? Note: I have been... read more
How do you output and modify the Content:Path variable using field:PHP global?

Migrate content of CCK fields [closed]

I need to transfer the content of a specific content type with CCK fields from Drupal 5 to Drupal 7. What’s the best and easiest and fastest way to do so? read more
How do you output and modify the Content:Path variable using field:PHP global?

Count of users who are logged in per day

I searched to find a way to display the number of users who are logged in per day. I want to display a chart using views for last month to show the login statistics of the website. Any suggestion? read more
How do you output and modify the Content:Path variable using field:PHP global?

How to hide an exposed filter block if the view results are empty?

I have an exposed filter block on the sidebar on my page. I want to hide the exposed filter block if the result of the view is empty. What is the best was to do it ? Right now i am having some Jquery code in a no result behaviour textfield wich hides some block... read more
How do you output and modify the Content:Path variable using field:PHP global?

How to submit form on selecting image in file select widget?

I am using Drupal Form API to upload profile image for user. I found two file upload widgets in FORM API: ‘#type’ => ‘managed_file’ & ‘#type’ => ‘file’ managed_file requires first selecting the file, then... read more
Create bulk nodes – PDOException

Create bulk nodes – PDOException

Problem I’m trying to create multiple nodes at once using a CSV file for the data. However my script only creates the first 25 before it throws the following error. Any ideas what might be happening? PDOException: in drupal_write_record() (line 7166 of... read more
How do you output and modify the Content:Path variable using field:PHP global?

ctools_modal_render() in a condition

I have the following code in my custom.module (using it in hook_init()): if ($js) { // Required includes for ctools to work: ctools_include(‘modal’); ctools_include(‘ajax’); } if (user_is_logged_in()) { $title = ‘hello’; $output =... read more
How do you output and modify the Content:Path variable using field:PHP global?

Creating some fields for a taxonomy menu with the active trail CSS classes?

I have a taxonomy vocabulary which I want to use to create some navigation on my site. Terms: Weather Clothes Calendar Sports I want to be able to pull these terms and put them in the navigation of the site. However, I want to be able to rewrite the links that these... read more
How do you output and modify the Content:Path variable using field:PHP global?

Entity reference selection by view

I have two content types, Location and Offer. The Offer type has an entity reference field that points to one or more Locations. A user of my Merchant role may create Location and Offer nodes. When creating an offer, they need to select from the list of Location nodes... read more
How do you output and modify the Content:Path variable using field:PHP global?

How can I alter (theme) the default content feed?

How can I alter (theme) the default content feed on the front page (the list of node teasers) so that my ‘thumbnail’ image style is used instead of my ‘medium’ style for the images contained in the nodes. All I can think of is to create my own... read more
How do you output and modify the Content:Path variable using field:PHP global?

How to parse definition lists ckeditor?

I want to write definition lists with , and tags with drupal commons 3 in CKEditor. I am writing code directly (while I am in source mode) then switch to WYSIWYG and go back to source. CKEditor change this tags to paragraphs. How to not transform definitions tags (dl,... read more
How do you output and modify the Content:Path variable using field:PHP global?

What value should the $bundle_name parameter for fileld_info_instances() get?

In a module, I need to get the list of fields for a content type. I used the following code, but $instances is empty. $instances = field_info_instances(‘node’, ‘indicatorsheet_page’); To what value should I set $content_type? Isn’t it a... read more
How do you output and modify the Content:Path variable using field:PHP global?

How do I use the Print Module with a Custom Form Module?

I have searched and searched but have not found a definitive answer or direction. I’ve installed the Print module (Printer, email and PDF) and have it successfully working when associated with content types. My problem however, is making it work with custom... read more
How do you output and modify the Content:Path variable using field:PHP global?

How to display all children on parent node for custom content type?

I have a custom content type, let’s call it ‘parent’. I have another custom content type, let’s call it ‘child’. I created a template file where I can display the ‘parent’ content type fields any way I want:... read more
How do you output and modify the Content:Path variable using field:PHP global?

Organic-Groups multisite architecture

I have a task to build a series of websites all related to the same core business. Initially, I was going to build each one as a separate website. Later however, I was told the sites have to be able to share content which changed my plans. Going by the logic that the... read more
How do you output and modify the Content:Path variable using field:PHP global?

Delete old files from server when content is updated

When a node is updated by replacing a new file upload, old files exist on the server maintaining versions. I want to delete old files from the server when content is updated. read more
How do i generate token for each user they submit my custom form?

How do i generate token for each user they submit my custom form?

I have a created a custom module with simple form with only three fields ( Url, title & email ) , where user has to enter all the fields for submission. I am able to send the mail to the user from my custom module but i need to create and attach a validation link... read more