<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>General developer forum</title>
    <link>http://moodle.org/mod/forum/view.php?f=33</link>
    <description>
&lt;p&gt;This &lt;span class=&quot;nolink&quot;&gt;forum&lt;/span&gt; is for general developer news or issues that don't fit into any of the other &lt;span class=&quot;nolink&quot;&gt;forums&lt;/span&gt;!&lt;/p&gt;
&lt;p&gt;Before posting, please make sure there is not a more appropriate forum you could be using. In particular, please use the General problems forum if you're having problems with your Moodle site, and the Moodle tracker to report bugs.&lt;/p&gt;
&lt;p&gt;Please check out the Developer documentation and the Developer FAQ too.&lt;/p&gt;</description>
    <generator>Moodle</generator>
    <copyright>&amp;#169; 2010 Moodle.org</copyright>
    <image>
      <url>http://moodle.org/pix/i/rsssitelogo.gif</url>
      <title>moodle</title>
      <link>http://moodle.org</link>
      <width>140</width>
      <height>35</height>
    </image>
    <item>
      <category>how to add &quot;common module settings&quot; for a module</category>
      <title>Re: how to add &quot;common module settings&quot; for a module</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143364&amp;parent=626292</link>
      <pubDate>Tue, 09 Feb 2010 17:27:11 GMT</pubDate>
      <dc:creator>Mike Churchward</dc:creator>
      <description>by Mike Churchward. &amp;nbsp;&lt;p&gt;Unfortunately the version that works with Elluminate's hosted solution servers (SAS) has not been upgraded to the latest Elluminate module code. You need to bug them about it.&lt;br /&gt;&lt;br /&gt;The version that runs with your own Elluminate (ELM) does fully support groups, but you cannot use it with an Elluminate hosted account.&lt;br /&gt;&lt;br /&gt;mike&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143364&amp;parent=626292</guid>
    </item>
    <item>
      <category>SQL query (or API function) for counting course students?</category>
      <title>Re: SQL query (or API function) for counting course students?</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143309&amp;parent=626285</link>
      <pubDate>Tue, 09 Feb 2010 17:16:38 GMT</pubDate>
      <dc:creator>Mike Churchward</dc:creator>
      <description>by Mike Churchward. &amp;nbsp;&lt;p&gt;Hi Alexander -&lt;br /&gt;&lt;br /&gt;Unfortunately, there is no easy way to determine this. The concept of &amp;quot;student&amp;quot; in Moodle has changed since 1.7. Student is now an arbitrary role that has a number of defined capabilities (privileges). &lt;br /&gt;&lt;br /&gt;To do what you want, you would really want to find all users with a defined capability at a specific course context. get_users_by_capability in accesslib does this (accesslib is in /lib/accesslib.php). It does not return a count though - just all users.&lt;br /&gt;&lt;br /&gt;If you know for sure that what you really want is users assigned a specific role (say student) in a specific course context, you can use count_role_users or get_users_from_role_on_context in accesslib.&lt;br /&gt;&lt;br /&gt;In either case, the code there will also show you how to construct &lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: SQL&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=SQL&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=SQL', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;SQL&lt;/a&gt; if you wanted to write your own.&lt;br /&gt;&lt;br /&gt;mike&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143309&amp;parent=626285</guid>
    </item>
    <item>
      <category>Developing a new tool</category>
      <title>Re: Developing a new tool</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=626284</link>
      <pubDate>Tue, 09 Feb 2010 17:14:24 GMT</pubDate>
      <dc:creator>Pol Monsó</dc:creator>
      <description>by Pol Monsó. &amp;nbsp;&lt;p&gt;Great!&lt;br /&gt;&lt;br /&gt;I'll try it and come back to you when I got it working &lt;img alt=&quot;smile&quot; width=&quot;15&quot; height=&quot;15&quot; src=&quot;http://moodle.org/pix/s/smiley.gif&quot; /&gt; Thanks David&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=626284</guid>
    </item>
    <item>
      <category>Custom module</category>
      <title>Re: Custom module</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143302&amp;parent=626221</link>
      <pubDate>Tue, 09 Feb 2010 14:52:58 GMT</pubDate>
      <dc:creator>Luke Bridges</dc:creator>
      <description>by Luke Bridges. &amp;nbsp;&lt;p&gt;&lt;p&gt;WOW! Didn't know that was there. I really must learn to use the search box .....&lt;/p&gt;
&lt;p&gt;Thanks Daniele&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143302&amp;parent=626221</guid>
    </item>
    <item>
      <category>Custom module</category>
      <title>Re: Custom module</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143302&amp;parent=626160</link>
      <pubDate>Tue, 09 Feb 2010 12:20:19 GMT</pubDate>
      <dc:creator>Daniele Cordella</dc:creator>
      <description>by Daniele Cordella. &amp;nbsp;&lt;p&gt;Have a look &lt;a href=&quot;http://docs.moodle.org/en/Development:NEWMODULE_Documentation&quot; title=&quot;NEWMODULE_Documentation&quot;&gt;here&lt;/a&gt; too.&lt;br /&gt;Ciao.&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143302&amp;parent=626160</guid>
    </item>
    <item>
      <category>how to add &quot;common module settings&quot; for a module</category>
      <title>Re: how to add &quot;common module settings&quot; for a module</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143364&amp;parent=626138</link>
      <pubDate>Tue, 09 Feb 2010 10:55:05 GMT</pubDate>
      <dc:creator>Tim Hunt</dc:creator>
      <description>by Tim Hunt. &amp;nbsp;&lt;p&gt;Just adding those settings to the form won't magically make groups work with Elluminate sessions.&lt;br /&gt;&lt;br /&gt;I think a new version of the Elluminate-Moodle link is due out soon-ish. It is probably easiest just to wait for that.&lt;br /&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143364&amp;parent=626138</guid>
    </item>
    <item>
      <category>Custom module</category>
      <title>Re: Custom module</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143302&amp;parent=626136</link>
      <pubDate>Tue, 09 Feb 2010 10:51:19 GMT</pubDate>
      <dc:creator>Luke Bridges</dc:creator>
      <description>by Luke Bridges. &amp;nbsp;&lt;p&gt;Doh !!!, Thanks Paul &lt;img title=&quot;blush&quot; alt=&quot;blush&quot; src=&quot;http://moodle.org/pix/s/blush.gif&quot; /&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143302&amp;parent=626136</guid>
    </item>
    <item>
      <category>Developing a new tool</category>
      <title>Re: Developing a new tool</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=626121</link>
      <pubDate>Tue, 09 Feb 2010 09:35:49 GMT</pubDate>
      <dc:creator>David Smith</dc:creator>
      <description>by David Smith. &amp;nbsp;&lt;p&gt;&lt;p&gt;There is nothing to stop a block from linking to another page that would show further options - maybe a search box to get started, which then shows the results and further options on a separate page.&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=626121</guid>
    </item>
    <item>
      <category>Developing a new tool</category>
      <title>Re: Developing a new tool</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=626112</link>
      <pubDate>Tue, 09 Feb 2010 08:58:07 GMT</pubDate>
      <dc:creator>Pol Monsó</dc:creator>
      <description>by Pol Monsó. &amp;nbsp;&lt;p&gt;Thanks David!&lt;br /&gt;&lt;br /&gt;That may be it, but is it possible to gain focus as a single page when the teacher is aiming for a more complex search? The typical use case is a teacher wanting to create a pdf with problems 1,5,9,17 and 55 (to say some) and then, another one with the problems and solutions, or with the summary of the first topic and the notes he or she has made.&lt;br /&gt;&lt;br /&gt;So it's more like &lt;span style=&quot;font-style: italic;&quot;&gt;building&lt;/span&gt; the target pdf, a kind of intense and not made every week like when searching something around. If we could gain focus, the block would do the trick as soon as the teacher has understood the query syntax.&lt;br /&gt;&lt;br /&gt;Moreover, in the future (I haven't implemented yet), would be nice to have snippets of the text pieces to show off what has been included or not, prior to creating the PDF.&lt;br /&gt;&lt;br /&gt;Sorry for the absolute beginner talk :/ I'm trying to figure out what may suit better to what we're doing to start with the right foot. I can explain more explicitly if you'd like.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=626112</guid>
    </item>
    <item>
      <category>how to add &quot;common module settings&quot; for a module</category>
      <title>Re: how to add &quot;common module settings&quot; for a module</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143364&amp;parent=626109</link>

<enclosure url="http://moodle.org/file.php/5/moddata/forum/33/626109/mod.html" length="7136" type="text/html" />
      <pubDate>Tue, 09 Feb 2010 08:51:25 GMT</pubDate>
      <dc:creator>Murad Jamal</dc:creator>
      <description>by Murad Jamal. &amp;nbsp;&lt;p&gt;&lt;p&gt;Hi Patrick,&lt;/p&gt;
&lt;p&gt;thank you for you prompt response, but this module (Elluminate Live Meeting) does not come with mod_form.php file, instead it has mod.html file to build up the settings form and i attached this file with this post for you to check.&lt;/p&gt;
&lt;p&gt;when I looked at mod.html code, it's hard to add a new stdClass object (the one you wrote above) to the regular HTML form.&lt;/p&gt;
&lt;p&gt;the settings form of this module is as in the following image :&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://farm5.static.flickr.com/4027/4343171792_8326373c41_o.jpg&quot; complete=&quot;true&quot; complete=&quot;true&quot; /&gt;&lt;/p&gt;
&lt;p&gt;as you notice, there is no common module settings section ...&lt;/p&gt;
&lt;p&gt;is there any way to add this section to this form ?&lt;/p&gt;
&lt;p&gt;any help would be highly appreciated ...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143364&amp;parent=626109</guid>
    </item>
    <item>
      <category>how to add &quot;common module settings&quot; for a module</category>
      <title>Re: how to add &quot;common module settings&quot; for a module</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143364&amp;parent=626093</link>
      <pubDate>Tue, 09 Feb 2010 07:44:30 GMT</pubDate>
      <dc:creator>Patrick Pollet</dc:creator>
      <description>by Patrick Pollet. &amp;nbsp;&lt;p&gt;You have to add (at least in Moodle 1.9) the following lines at the end of the function definition() in the class xxx_mod_form defined in script mod_form.php, juste before the comment about standard buttons&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//-------------------------------------------------------------------------------&lt;br /&gt; // add standard elements, common to all modules&lt;br /&gt; $features = new stdClass;&lt;br /&gt; $features-&amp;gt;groups = true;&lt;br /&gt; $features-&amp;gt;groupings = true;&lt;br /&gt; $features-&amp;gt;groupmembersonly = true;&lt;br /&gt; $this-&amp;gt;standard_coursemodule_elements($features);&lt;br /&gt;//-------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt; // add standard buttons, common to all modules&lt;br /&gt;&lt;br /&gt;Cheers.&lt;br /&gt; &lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143364&amp;parent=626093</guid>
    </item>
    <item>
      <category>how to add &quot;common module settings&quot; for a module</category>
      <title>how to add &quot;common module settings&quot; for a module</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143364&amp;parent=626081</link>
      <pubDate>Tue, 09 Feb 2010 06:33:44 GMT</pubDate>
      <dc:creator>Murad Jamal</dc:creator>
      <description>by Murad Jamal. &amp;nbsp;&lt;p&gt;&lt;p&gt;I have downloaded a module named &amp;quot;Elluminate Live Meeting&amp;quot; module and I have an account on their &lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: server&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=server&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=server', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;server&lt;/a&gt;, but when I add a new Elluminate activity, it misses the &amp;quot;commom module settings&amp;quot; section in the settings page, there is no problem with it, this module comes like that (i.e. without the common module settings), I mean with these settings the ones like in this image : &lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://farm5.static.flickr.com/4060/4343032744_c38e79c60a_o.jpg&quot; complete=&quot;true&quot; complete=&quot;true&quot; /&gt;&lt;/p&gt;
&lt;p&gt;so, is their any coding guide to add such section to the settings page ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143364&amp;parent=626081</guid>
    </item>
    <item>
      <category>IE8 issue: MS Office files download link </category>
      <title>Re: IE8 issue: MS Office files download link </title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143111&amp;parent=626017</link>
      <pubDate>Mon, 08 Feb 2010 22:44:12 GMT</pubDate>
      <dc:creator>Nadav Kavalerchik</dc:creator>
      <description>by Nadav Kavalerchik. &amp;nbsp;&lt;p&gt;I saw this sad issue on one of the computers at a collage i work with.&lt;br /&gt;No solution yet.&lt;br /&gt;&lt;br /&gt;Tried to play with the http headers that were sent by the &lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: server&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=server&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=server', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;server&lt;/a&gt;&lt;br /&gt;and it did not helped.&lt;br /&gt;&lt;br /&gt;I guess it is a mis-recognition of the mime type by the browser.&lt;br /&gt;&lt;br /&gt;If you could only send some bug report to MS &lt;img alt=&quot;smile&quot; width=&quot;15&quot; height=&quot;15&quot; src=&quot;http://moodle.org/pix/s/smiley.gif&quot; /&gt;&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143111&amp;parent=626017</guid>
    </item>
    <item>
      <category>Developing a new tool</category>
      <title>Re: Developing a new tool</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=626006</link>
      <pubDate>Mon, 08 Feb 2010 22:02:41 GMT</pubDate>
      <dc:creator>David Smith</dc:creator>
      <description>by David Smith. &amp;nbsp;&lt;p&gt;&lt;p&gt;Sounds like you should be developing a block, which would sit down the side of the moodle course.&lt;br /&gt;
&lt;br /&gt;
The teacher would then have a search box that they could type into.&lt;br /&gt;
&lt;br /&gt;
Look here: &lt;a href=&quot;http://docs.moodle.org/en/Development:Blocks&quot; target=&quot;_blank&quot;&gt;http://docs.moodle.org/en/Development:Blocks&lt;/a&gt; &lt;br /&gt;
for more info&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=626006</guid>
    </item>
    <item>
      <category>user_info_data show data in users list</category>
      <title>user_info_data show data in users list</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143339&amp;parent=625971</link>
      <pubDate>Mon, 08 Feb 2010 19:51:51 GMT</pubDate>
      <dc:creator>Pedro Chavolla</dc:creator>
      <description>by Pedro Chavolla. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;posting&quot;&gt; 
  &lt;p&gt;Could you please let me know how to let the users list when taking attendance display an extra field.&lt;/p&gt; 
  &lt;p&gt;I need to know to which (data) each student belongs (user_info_data) and see then in the users list. Please help&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143339&amp;parent=625971</guid>
    </item>
    <item>
      <category>Developing a new tool</category>
      <title>Re: Developing a new tool</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=625959</link>
      <pubDate>Mon, 08 Feb 2010 18:48:55 GMT</pubDate>
      <dc:creator>Pol Monsó</dc:creator>
      <description>by Pol Monsó. &amp;nbsp;&lt;p&gt;Nope we're not trying to &lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: upload&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=upload&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=upload', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;upload&lt;/a&gt; PDFs unto moodle. What we are providing is a module which given a specifically design TeX file is capable to generate a new PDF given a search criteria. Therefore, we would like to integrate this search form into moodle and call the php scripts we've made which create the PDF etc.&lt;br /&gt;&lt;br /&gt;So, basically, I've developed a php application that upon a characteristics request generate a new PDF and provide its &lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: download&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=download&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=download', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;download&lt;/a&gt;. My question, basically, is how should we integrate this tool into Moodle, so the teachers can go to its page, submit the request, and obtain the PDF.&lt;br /&gt;&lt;br /&gt;We've already done it by placing the code within a container in moodle, now we would like to follow the moodle structure and module organization to make it reusable.&lt;br /&gt;&lt;br /&gt;I presume Activity module does not suit the tool module we would like, but I'm not sure about it. &lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=625959</guid>
    </item>
    <item>
      <category>Developing a new tool</category>
      <title>Re: Developing a new tool</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=625923</link>
      <pubDate>Mon, 08 Feb 2010 16:44:24 GMT</pubDate>
      <dc:creator>David Smith</dc:creator>
      <description>by David Smith. &amp;nbsp;&lt;p&gt;&lt;p&gt;If you are looking at ways of working with PDFs in Moodle, you could probably do worse than looking through my UploadPDF assignment plugin (source available here: &lt;a href=&quot;http://cvs.moodle.org/contrib/plugins/mod/assignment/type/uploadpdf/&quot; target=&quot;_blank&quot;&gt;http://cvs.moodle.org/contrib/plugins/mod/assignment/type/uploadpdf/&lt;/a&gt; ).&lt;br /&gt;
&lt;br /&gt;
That makes use of the TCPDF and FPDI libraries to parse PDFs and split/combine them.&lt;br /&gt;
&lt;br /&gt;
As for whether or not you should create an activity for this, then that depends on exactly what you are trying to do - if you outline a specific use-case, then I'm sure someone could give further advice about that.&lt;br /&gt;
&lt;br /&gt;
As for good example modules to look at, I've always found the built-in Forum module easy to read and use as reference (but I'm sure other's on this forum may have better suggestions). You should also try looking at these two pages that have lots of information to get you started:&lt;br /&gt;
&lt;a href=&quot;http://docs.moodle.org/en/Development:NEWMODULE_Documentation&quot; target=&quot;_blank&quot;&gt;http://docs.moodle.org/en/Development:NEWMODULE_Documentation&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://docs.moodle.org/en/Development:Modules&quot; target=&quot;_blank&quot;&gt;http://docs.moodle.org/en/Development:Modules&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Davo&lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=625923</guid>
    </item>
    <item>
      <category>Developing a new tool</category>
      <title>Developing a new tool</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=625870</link>
      <pubDate>Mon, 08 Feb 2010 15:12:40 GMT</pubDate>
      <dc:creator>Pol Monsó</dc:creator>
      <description>by Pol Monsó. &amp;nbsp;&lt;p&gt;Hello!&lt;br /&gt;&lt;br /&gt;I'll be working on a new PDF splitter and Documentation organizer and its integration with moodle. I'd like some advice upon the start of such tool within moodle. Would it be an Activity Module? Which module should I take as an example?&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143321&amp;parent=625870</guid>
    </item>
    <item>
      <category>SQL query (or API function) for counting course students?</category>
      <title>SQL query (or API function) for counting course students?</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143309&amp;parent=625827</link>
      <pubDate>Mon, 08 Feb 2010 13:30:43 GMT</pubDate>
      <dc:creator>Alexander Noriega</dc:creator>
      <description>by Alexander Noriega. &amp;nbsp;&lt;p&gt; Hi folks, I'm coding a Drupal/Moodle integration module which requires the Drupal side of the system to be aware of the number of students that are enrolled in a given course at any point in time. The DB tables for the moodle installation are stored within the same DB for drupal, so I think it'd be faster if I do a &lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: SQL&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=SQL&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=SQL', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;SQL&lt;/a&gt; query, but at the same time, if the DB structure for Moodle changes in the future, everything will break, so I'd like to know if there's already a function available in the moodle API that abstracts this functionality.&lt;br /&gt; &lt;br /&gt; Anyway, one of the things I need to do is generate a dynamic message (in Drupal) like:&lt;br /&gt; &lt;br /&gt; /***********************************************************/&lt;br /&gt; &lt;br /&gt; // In Drupal module&lt;br /&gt; if (($students = get_number_of_students($course_id)) =&amp;lt; 10) {&lt;br /&gt; echo &amp;quot;Be one of the first 10 students to enroll in this course&amp;quot;;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; function get_number_of_students($course_id) {&lt;br /&gt; // communicate with moodle API through HTTP or do a direct SQL query&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; /***********************************************************/&lt;br /&gt; &lt;br /&gt; Thank you,&lt;br /&gt; &lt;br /&gt; --Alexander&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143309&amp;parent=625827</guid>
    </item>
    <item>
      <category>Custom module</category>
      <title>Re: Custom module</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=143302&amp;parent=625826</link>

<enclosure url='http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=XML' type='application/xml' />
      <pubDate>Mon, 08 Feb 2010 13:29:41 GMT</pubDate>
      <dc:creator>Paul Holden</dc:creator>
      <description>by Paul Holden. &amp;nbsp;&lt;p&gt;Your &lt;span style=&quot;font-style: italic;&quot;&gt;install.&lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: XML&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=XML&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=XML', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;xml&lt;/a&gt;&lt;/span&gt; file doesn't define any tables by that name &lt;img title=&quot;wink&quot; alt=&quot;wink&quot; src=&quot;http://moodle.org/pix/s/wink.gif&quot; /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=143302&amp;parent=625826</guid>
    </item>
  </channel>
</rss>